really embarrassing mistake
This commit is contained in:
parent
b90b3d6f4d
commit
7f44cb37eb
@ -4,7 +4,6 @@ set -x
|
|||||||
|
|
||||||
for f in ./blah/*.html
|
for f in ./blah/*.html
|
||||||
do
|
do
|
||||||
cat "$f"
|
|
||||||
awk '
|
awk '
|
||||||
BEGIN { n = 0; }
|
BEGIN { n = 0; }
|
||||||
/^\$!NAVIGATION$/ {
|
/^\$!NAVIGATION$/ {
|
||||||
@ -18,7 +17,6 @@ BEGIN { n = 0; }
|
|||||||
&& mv "$f.tmp" "$f" \
|
&& mv "$f.tmp" "$f" \
|
||||||
|| rm "$f.tmp"
|
|| rm "$f.tmp"
|
||||||
f="$(printf '%s\n' "$f" | sed -e 's,./blah/,,' -e 's,\.html$,,')"
|
f="$(printf '%s\n' "$f" | sed -e 's,./blah/,,' -e 's,\.html$,,')"
|
||||||
sed -i "./blah/$f.html" -e 's_\$!NAVIGATION_&\n'"$f"'\n_1'
|
|
||||||
test -n "$last" \
|
test -n "$last" \
|
||||||
&& sed -i "./blah/$last.html" \
|
&& sed -i "./blah/$last.html" \
|
||||||
-e "s,\$!NAVIGATION,$nav<A HREF=\"$f.html\">\></A>,g" \
|
-e "s,\$!NAVIGATION,$nav<A HREF=\"$f.html\">\></A>,g" \
|
||||||
|
Loading…
Reference in New Issue
Block a user