summaryrefslogtreecommitdiff
path: root/cronjob.sh
blob: 17ce07f1805d0626c88df5251bd36bc99ac888ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 *