Summary Files Commits Branches @commit @diff @stats
path: root / make-flags.sh
diff options
context:
space:
mode:
1 files changed, 0 insertions, 17 deletions
-rwxr-xr-xmake-flags.sh17
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/&#38;&#38;gb/<img src="\/img\/gb.svg" class="unzoomable" alt="ENG" title="ENG">/g' "$file"
-done