get bin/zod out of repo
This commit is contained in:
parent
7be7041aa2
commit
cbc5382e0b
33
bin/zod
33
bin/zod
@ -1,33 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# ZODIAC - a simple static site generator
|
||||
# Copyright (c) 2011 Chase Allen James <nx-zodiac@nu-ex.com>
|
||||
|
||||
zod_lib=/home/nuex/_dev/zodiac/lib
|
||||
proj="$1"
|
||||
target="$2"
|
||||
|
||||
. zod-internal
|
||||
|
||||
_zod_error() {
|
||||
echo -e ">>> ERROR: $*" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
_zod_exec() {
|
||||
phase="$1"; shift
|
||||
__zod_config |
|
||||
awk -f "$zod_lib/config.awk" \
|
||||
-f "$zod_lib/find_cmd.awk" \
|
||||
-v phase="$phase" \
|
||||
-v zod_lib="$zod_lib" \
|
||||
-v proj="$proj" \
|
||||
-v target="$target" | sh
|
||||
}
|
||||
|
||||
[ "$#" -ne 2 ] && { echo "usage: zod projectdir targetdir"; exit; }
|
||||
[ ! -d "$proj" ] && _zod_error "project directory does not exist"
|
||||
[ ! -d "$target" ] && _zod_error "target directory does not exist"
|
||||
|
||||
_zod_exec "render"
|
||||
_zod_exec "copy"
|
Loading…
Reference in New Issue
Block a user