Compare commits

...

3 Commits

Author SHA1 Message Date
c0dev0id 6278f5844e Add clean target 2022-12-24 08:35:57 +01:00
c0dev0id 0b75d9ce1f support per-directory metadata dir.meta 2022-11-19 23:22:49 +01:00
c0dev0id 6eac1472b5 change prefix to /opt 2022-11-19 23:21:43 +01:00
3 changed files with 8 additions and 1 deletions

View File

@ -21,6 +21,11 @@ install: all
@cp lib/find_cmd.awk ${AWKLIB}
@echo Installation Complete
clean:
@echo Removing zod executable
@rm bin/zod
@echo Done
uninstall:
@echo Uninstalling zod executables
@rm ${PREFIX}/bin/zod

View File

@ -8,6 +8,7 @@ target="$1"; shift
file="$1"; shift
ext="${file##*.}"
meta="${file%.$ext}.meta"
dirmeta="${file%/*}/dir.meta"
page="${file##*/}"
page="${page%.$ext}.html"
destination=$(__zod_destination "$file")
@ -18,6 +19,7 @@ set -- "$@" -f "$zod_lib/config.awk"
set -- "$@" -
[ -f "$proj/global.meta" ] && set -- "$@" "$proj/global.meta"
[ -f "$meta" ] && set -- "$@" "$meta"
[ -f "$dirmeta" ] && set -- "$@" "$dirmeta"
set -- "$@" "$file"
[ -f "$proj/main.layout" ] && set -- "$@" "$proj/main.layout"

View File

@ -1,2 +1,2 @@
PREFIX = /usr/local
PREFIX = /opt/zodiac
AWKLIB = ${PREFIX}/lib/zodiac