conversión gem2gem
This commit is contained in:
parent
9b772d64cc
commit
7b00e930da
|
@ -15,11 +15,15 @@ for f in $(find src/ -iname *.gmi)
|
||||||
do
|
do
|
||||||
path=${f#src/} # quita el prefijo de "src/"
|
path=${f#src/} # quita el prefijo de "src/"
|
||||||
htmlpath="web/${path%gmi}html" # agrega "web/" y cambia el sufijo
|
htmlpath="web/${path%gmi}html" # agrega "web/" y cambia el sufijo
|
||||||
if [ $f -nt $htmlpath ] # si archivo gmi es "newer than" el html
|
gempath="gem/${path}" # agrega "gem/"
|
||||||
then
|
# if [ $f -nt $htmlpath ] # si archivo gmi es "newer than" el html
|
||||||
|
# then
|
||||||
echo "${f} -> ${htmlpath}"
|
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
|
# haz la conversión
|
||||||
awk -f gemtext2html.awk $f > $htmlpath
|
awk -f gemtext2html.awk $f > $htmlpath
|
||||||
fi
|
awk -f gem2gem.awk $f > $gempath
|
||||||
|
# fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue