aboutsummaryrefslogtreecommitdiffstats
path: root/generasitio.sh
diff options
context:
space:
mode:
authorsejo <sejo@texto-plano.xyz>2021-05-19 20:36:07 -0500
committersejo <sejo@texto-plano.xyz>2021-05-19 20:36:07 -0500
commit7b00e930daafde8bdebd7d92a850c94ddc8ef955 (patch)
tree26e278904cb3458775a4b2913d6ad067315d7ddb /generasitio.sh
parent9b772d64cc224aa8d87d7c36c612f39963f7f91e (diff)
downloadsitio-7b00e930daafde8bdebd7d92a850c94ddc8ef955.tar.gz
conversión gem2gem
Diffstat (limited to 'generasitio.sh')
-rwxr-xr-xgenerasitio.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/generasitio.sh b/generasitio.sh
index 2adab59..cbd8b5a 100755
--- a/generasitio.sh
+++ b/generasitio.sh
@@ -15,11 +15,15 @@ for f in $(find src/ -iname *.gmi)
do
path=${f#src/} # quita el prefijo de "src/"
htmlpath="web/${path%gmi}html" # agrega "web/" y cambia el sufijo
- if [ $f -nt $htmlpath ] # si archivo gmi es "newer than" el html
- then
+ gempath="gem/${path}" # agrega "gem/"
+# if [ $f -nt $htmlpath ] # si archivo gmi es "newer than" el html
+# then
echo "${f} -> ${htmlpath}"
- mkdir -p $(dirname $htmlpath) # crea el directorio si no existe
+ echo "${f} -> ${gempath}"
+# mkdir -p $(dirname $htmlpath) # crea el directorio si no existe
+# mkdir -p $(dirname $htmlpath) # crea el directorio si no existe
# haz la conversión
awk -f gemtext2html.awk $f > $htmlpath
- fi
+ awk -f gem2gem.awk $f > $gempath
+# fi
done
Un proyecto texto-plano.xyz