summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgpcf <gpcf@gpcf.eu>2024-10-15 21:42:31 +0200
committergpcf <gpcf@gpcf.eu>2024-10-15 21:42:31 +0200
commit152138de3a456dbec3acbfee410a8f4955eab5b3 (patch)
treecadcc68674487d8c89b6ffd9cf7c5a933431e271
parentbe2d4d8267dd75d11d292ceae816b6fcdc7cb938 (diff)
downloadadvtrains_gitexporter-152138de3a456dbec3acbfee410a8f4955eab5b3.tar.gz
advtrains_gitexporter-152138de3a456dbec3acbfee410a8f4955eab5b3.tar.bz2
advtrains_gitexporter-152138de3a456dbec3acbfee410a8f4955eab5b3.zip
add cronjob
-rw-r--r--cronjob.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/cronjob.sh b/cronjob.sh
new file mode 100644
index 0000000..17ce07f
--- /dev/null
+++ b/cronjob.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+INPUT="$1"
+OUTPUT="$2"
+BASEPATH=$(dirname $0)
+
+mkdir -p "$OUTPUT"
+
+luajit $BASEPATH/gitexporter.lua "$INPUT" "$OUTPUT"
+
+cd "$OUTPUT"
+
+git init
+git config user.name "autocommitter"
+git config user.email "autocommitter@linux-forks.de"
+
+rm -rf BBT BBT_demo birchbay EldersValley lavacity trapcity personhood
+
+git add .
+
+git commit -m "State at $d"
+git push
+rm -rf *