aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsejo <sejo@texto-plano.xyz>2021-06-07 20:17:11 -0500
committersejo <sejo@texto-plano.xyz>2021-06-07 20:17:11 -0500
commitd92891c7777b1e860cf066051f50f1efb67a774a (patch)
treea8aae2d71c0fc6daa714259b94a74734be20f47e
parent9aaa3e5cdbf4e92460e97611b001b7a04f581245 (diff)
downloadsitio-d92891c7777b1e860cf066051f50f1efb67a774a.tar.gz
agrega mensaje de fecha actual
-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