Update render.sh

Matched output to unix cp
This commit is contained in:
Atlas Cove 2023-02-17 18:30:58 +00:00
parent f6f49aa315
commit 88363b7a2d

View File

@ -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-p2 # v3.4-p3
#B: Load #B: Load
enable -f /usr/lib/bash/csv csv enable -f /usr/lib/bash/csv csv
declare -A title declare -A title
@ -33,7 +33,7 @@ function docs {
inf "Rendering document files..." inf "Rendering document files..."
for i in ${doc[@]}; do for i in ${doc[@]}; do
o="${i/in/out}" o="${i/in/out}"
echo "$i => $o" echo "'$i' -> '$o'"
if test -z "${title[$i]}"; then if test -z "${title[$i]}"; then
m4 -D_INFILE="$i" -DCSSI=$(awk -f awk/getsd.awk <<< "$i") m4/main.html.m4 > ${o%.*}.html m4 -D_INFILE="$i" -DCSSI=$(awk -f awk/getsd.awk <<< "$i") m4/main.html.m4 > ${o%.*}.html
else else
@ -56,7 +56,7 @@ function sass {
for i in ${sass[@]}; do for i in ${sass[@]}; do
o="${i/in/out}" o="${i/in/out}"
o="${o/.s[ac]/.c}" o="${o/.s[ac]/.c}"
echo "$i => $o" echo "'$i' -> '$o'"
sassc -t expanded -a $i | sed '/^$/d' > $o sassc -t expanded -a $i | sed '/^$/d' > $o
done done
fi fi