From 7eb2726cfc92d1b9b9ae66e5666d922d3608b9d8 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 4 Jul 2022 16:25:38 +0300 Subject: Added script for ftags of flags, added gb flag, reworked blog and tutorial tables into definition lists --- make-flags.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 make-flags.sh (limited to 'make-flags.sh') diff --git a/make-flags.sh b/make-flags.sh new file mode 100755 index 0000000..786671d --- /dev/null +++ b/make-flags.sh @@ -0,0 +1,17 @@ +#!/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 "ENG" + sed -i 's/&&gb/ENG/g' "$file" +done -- cgit v1.3.1-26-gb76a