diff options
| Commit | 1fe3d39788cfb0a167ff562fa121c90ea3b445c7 (patch) | |
|---|---|---|
| Author | 2022-07-04 16:41:27 +0300 | |
| Committer | 2022-07-04 16:41:27 +0300 | |
| Files | 548480d4dbd98da7e1d06f1d9c339a871600af21 /make-flags.sh | |
| syndamia.com-1fe3d39788cfb0a167ff562fa121c90ea3b445c7.tar syndamia.com-1fe3d39788cfb0a167ff562fa121c90ea3b445c7.tar.gz syndamia.com-1fe3d39788cfb0a167ff562fa121c90ea3b445c7.zip | ||
| Parent | 287748bcd9d17462219699d01bb0d043812a9a8e (diff) | |
Reworked how HTML-editing scripts are handled
1 files changed, 0 insertions, 17 deletions
| -rwxr-xr-x | make-flags.sh | 17 |
diff --git a/make-flags.sh b/make-flags.sh deleted file mode 100755 index 786671d..0000000 --- a/make-flags.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -# Adds a way to more simply insert flags into text -# Each flag is represented with an ftag (text that is preceded by &&) - -# Available flags: -# Great Britain - &&gb - -if [ -z "$1" ]; then - echo First parameter must be a path - exit -fi - -for file in $(find "$1" -type f -name "*.html"); do - # Replaces "&&gb" with "<img src="/img/gb.svg" class="unzoomable" alt="ENG" title="ENG">" - sed -i 's/&&gb/<img src="\/img\/gb.svg" class="unzoomable" alt="ENG" title="ENG">/g' "$file" -done |