diff options
author | sejo <sejo@texto-plano.xyz> | 2021-05-20 16:31:51 -0500 |
---|---|---|
committer | sejo <sejo@texto-plano.xyz> | 2021-05-20 16:31:51 -0500 |
commit | 7c9cfd59c3ae0980ac78042b438d284ba6a641ac (patch) | |
tree | edae56d5a73abd9158f24d164f31eb58d9f00739 /generasitio.sh | |
parent | 77bdaf00ef1e72362f423179a9cbe056a027193f (diff) | |
download | sitio-7c9cfd59c3ae0980ac78042b438d284ba6a641ac.tar.gz |
agrega clean previo a la generación
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 |