Summary Files Commits Branches @commit @diff @stats
path: root / generate.sh
diff options
context:
space:
mode:
1 files changed, 13 insertions, 0 deletions
-rwxr-xr-xgenerate.sh13
diff --git a/generate.sh b/generate.sh
index 44df429..a9efe8c 100755
--- a/generate.sh
+++ b/generate.sh
@@ -17,6 +17,7 @@ NO_FIX=
NO_META=
NO_TINY=
FORCE_GEN=
+HIGHLIGHT=
while [ -n "$1" ]
do
case "$1" in
@@ -24,11 +25,22 @@ do
(-m|--no_meta) NO_META=y ;;
(-t|--no_tiny) NO_TINY=y ;;
(-f|--force) FORCE_GEN=y ;;
+ (-hi|--highlight)
+ if command -v highlight >/dev/null 2>&1
+ then
+ HIGHLIGHT="$(command -v highlight)"
+ else
+ echo 'Requested highlighting but could not find "highlight" command!'
+ exit 1
+ fi
+ ;;
(*) echo "Unknown argument '$1'!" ; exit 1 ;;
esac
shift
done
+export HIGHLIGHT
+
#== 0. Check for changes ==#
if [ -z "$FORCE_GEN" ] \
@@ -78,6 +90,7 @@ cp -a "$SRC/." "$DST"
/bin/sh ./dunbar/dunbar_awk/dunbar.sh html \
-i \
-e ./ext/pagenav.awk -e ./ext/presentation.awk \
+ -e ./ext/highlight.awk \
./ext/global.du \
$(find "$DST" -type f -name "*.du")