aboutsummaryrefslogtreecommitdiffstats
path: root/generasitio.sh
diff options
context:
space:
mode:
Diffstat (limited to 'generasitio.sh')
-rwxr-xr-xgenerasitio.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/generasitio.sh b/generasitio.sh
index 0ac298c..c21e6d1 100755
--- a/generasitio.sh
+++ b/generasitio.sh
@@ -3,6 +3,14 @@
mkdir -p web
mkdir -p gem
+orig=$(date +"%s" -d "1989-07-27")
+fecha=$(date +"%s")
+let "sem=(${fecha} - ${orig})/3600/24/7"
+let "dia=(${fecha} - ${orig})/3600/24%7 + 1"
+fechasjm="sejmana-${sem}, día ${dia}"
+
+echo "empezando conversión, estamos en ${fechasjm}"
+
echo "revisando y copiando imágenes..."
for f in $(find src/ -regextype awk -regex ".*(jpg|png|gif)")
do
@@ -37,7 +45,7 @@ ls src/*gmo | awk -f genindice.awk > src/indice.gmo
echo "revisando y convirtiendo archivimos gmo a html y gmi..."
-orig=$(date +"%s" -d "1989-07-27")
+
i=0
# convierte y actualiza archivos gmi a html
Un proyecto texto-plano.xyz