diff options
Diffstat (limited to 'generasitio.sh')
-rwxr-xr-x | generasitio.sh | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/generasitio.sh b/generasitio.sh index a0705bc..3e51652 100755 --- a/generasitio.sh +++ b/generasitio.sh @@ -8,7 +8,15 @@ do cp -vu $f $path done -echo "revisando y convirtiendo archivimos gmi a html..." + + +# limpia +echo "limpiando archivos previos..." + +rm web/*html +rm gem/*gmi + +echo "revisando y convirtiendo archivimos gmo a html y gmi..." orig=$(date +"%s" -d "1989-07-27") @@ -27,15 +35,10 @@ do fecha=$(date -r $f --rfc-3339=date) -# if [ $f -nt $htmlpath ] # si archivo gmi es "newer than" el html -# then - echo "${f}" + echo "${f}" # echo "${f} -> ${htmlpath}" # 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 -v fecha=$fecha -v fechasjm="$fechasjm" -f gemtext2html.awk $f > $htmlpath - awk -v fecha=$fecha -v fechasjm="$fechasjm" -f gem2gem.awk $f > $gempath -# fi + # haz la conversión + awk -v fecha=$fecha -v fechasjm="$fechasjm" -f gemtext2html.awk $f > $htmlpath + awk -v fecha=$fecha -v fechasjm="$fechasjm" -f gem2gem.awk $f > $gempath done |