Update render.sh
switched to using hard links.
This commit is contained in:
parent
7dda7cdc1e
commit
44f754b185
14
render.sh
14
render.sh
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# render.sh: part of the tape-and-string framework.
|
# render.sh: part of the tape-and-string framework.
|
||||||
# v3.4-p6
|
# v3.5-p0
|
||||||
#B: Load
|
#B: Load
|
||||||
enable -f /usr/lib/bash/csv csv
|
enable -f /usr/lib/bash/csv csv
|
||||||
declare -A title
|
declare -A title
|
||||||
@ -64,12 +64,10 @@ function sass {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
function other {
|
function other {
|
||||||
if ! test -d out; then
|
local other=`./pfiles.rb rest`
|
||||||
err "Cannot render, directory 'out' does not exist, run ./render.sh dir"
|
for i in $other; do
|
||||||
return 1
|
ln -v $i ${i/in/out}
|
||||||
fi
|
done
|
||||||
inf "Copying other files..."
|
|
||||||
cp -rv 'in'/* out/
|
|
||||||
}
|
}
|
||||||
function sitemap {
|
function sitemap {
|
||||||
./gensimap.sh
|
./gensimap.sh
|
||||||
@ -124,7 +122,7 @@ case $1 in
|
|||||||
doc) docs;;
|
doc) docs;;
|
||||||
docs) docs;;
|
docs) docs;;
|
||||||
s[ac]ss) sass;;
|
s[ac]ss) sass;;
|
||||||
other) other;;
|
other) dirs; other;;
|
||||||
rest) other;;
|
rest) other;;
|
||||||
info) info;;
|
info) info;;
|
||||||
sitemap) sitemap;;
|
sitemap) sitemap;;
|
||||||
|
Loading…
Reference in New Issue
Block a user