summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-08 01:28:21 +0200
committeremkael <emkael@tlen.pl>2017-09-08 01:28:21 +0200
commit8f795b1d445441daab5ffb75060a6dbf8ed0934a (patch)
tree15e55a2a7e03867ac0cccfb8303674d478510503 /bin
parent655a9847513332e8e119f37f7ed95f4ab002b1a1 (diff)
Renaming scripts so that their names make sense
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-players.sh4
-rwxr-xr-xbin/cezar-db-fetch.sh (renamed from bin/fetch-cezar-db.sh)0
-rwxr-xr-xbin/cezar-db-import.sh (renamed from bin/import-cezar-db.sh)0
-rw-r--r--bin/convert-cezar-ranking-csv.py9
-rwxr-xr-xbin/datafiles-build.sh (renamed from bin/build-datafiles.sh)2
-rwxr-xr-xbin/group-tools-json.sh (renamed from bin/generate-json.sh)2
-rwxr-xr-xbin/menus-build.sh (renamed from bin/write-menus.sh)2
-rwxr-xr-xbin/players-build.sh4
-rwxr-xr-xbin/rankings-csv-import.sh (renamed from bin/import-rankings.sh)0
-rwxr-xr-xbin/rankings-tables-build.sh (renamed from bin/build-rankings.sh)2
-rwxr-xr-xbin/rankings-target-files.sh (renamed from bin/target-ranking-files.sh)0
-rwxr-xr-xbin/statics-generate.sh (renamed from bin/generate-statics.sh)4
12 files changed, 10 insertions, 19 deletions
diff --git a/bin/build-players.sh b/bin/build-players.sh
deleted file mode 100755
index e1d099d..0000000
--- a/bin/build-players.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-DIR=$1
-mkdir -p $DIR/players
-python scripts/players.py $DIR/players $DIR/players/.menu.html
diff --git a/bin/fetch-cezar-db.sh b/bin/cezar-db-fetch.sh
index 3af7357..3af7357 100755
--- a/bin/fetch-cezar-db.sh
+++ b/bin/cezar-db-fetch.sh
diff --git a/bin/import-cezar-db.sh b/bin/cezar-db-import.sh
index 4db5261..4db5261 100755
--- a/bin/import-cezar-db.sh
+++ b/bin/cezar-db-import.sh
diff --git a/bin/convert-cezar-ranking-csv.py b/bin/convert-cezar-ranking-csv.py
deleted file mode 100644
index 4dcee92..0000000
--- a/bin/convert-cezar-ranking-csv.py
+++ /dev/null
@@ -1,9 +0,0 @@
-import csv, sys
-
-data = list(csv.reader(file(sys.argv[1]), delimiter=";"))
-
-output = csv.writer(file(sys.argv[2], 'w'))
-
-date = data[1][3]
-for row in data[4:-1]:
- output.writerow([row[0], date, row[2], row[1]])
diff --git a/bin/build-datafiles.sh b/bin/datafiles-build.sh
index 82c2e9c..5c336ff 100755
--- a/bin/build-datafiles.sh
+++ b/bin/datafiles-build.sh
@@ -6,6 +6,6 @@ cat $CONFIG |
jq -r '.[] | .date' |
while read DATE
do
- python scripts/datafile.py $DATE $PREV_DATE > "$DIR/$DATE.json"
+ python scripts/datafiles-generate.py $DATE $PREV_DATE > "$DIR/$DATE.json"
PREV_DATE=$DATE
done
diff --git a/bin/generate-json.sh b/bin/group-tools-json.sh
index d856a89..e6f04c8 100755
--- a/bin/generate-json.sh
+++ b/bin/group-tools-json.sh
@@ -2,4 +2,4 @@
CONFIG=$1
OUTPUT=$2
LAST_DATE=`cat $CONFIG | jq -r '.[] | .date' | sort | tail -n1`
-python scripts/generate-json.py $LAST_DATE > $OUTPUT/_data/group-data.json
+python scripts/group-tools-json-generate.py $LAST_DATE > $OUTPUT/_data/group-data.json
diff --git a/bin/write-menus.sh b/bin/menus-build.sh
index 500db52..0ac3a92 100755
--- a/bin/write-menus.sh
+++ b/bin/menus-build.sh
@@ -5,5 +5,5 @@ mkdir -p $DIRECTORY/players
find $DIRECTORY -type d -not -name _\* |
while read HTMLDIR
do
- python scripts/generate-static-menu.py $CONFIG_FILE $DIRECTORY $HTMLDIR > $HTMLDIR/.menu.html
+ python scripts/menus-compile.py $CONFIG_FILE $DIRECTORY $HTMLDIR > $HTMLDIR/.menu.html
done
diff --git a/bin/players-build.sh b/bin/players-build.sh
new file mode 100755
index 0000000..06fdf4f
--- /dev/null
+++ b/bin/players-build.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+DIR=$1
+mkdir -p $DIR/players
+python scripts/players-compile.py $DIR/players $DIR/players/.menu.html
diff --git a/bin/import-rankings.sh b/bin/rankings-csv-import.sh
index 90ce6bc..90ce6bc 100755
--- a/bin/import-rankings.sh
+++ b/bin/rankings-csv-import.sh
diff --git a/bin/build-rankings.sh b/bin/rankings-tables-build.sh
index c51fa1d..0d85972 100755
--- a/bin/build-rankings.sh
+++ b/bin/rankings-tables-build.sh
@@ -6,5 +6,5 @@ cat $CONFIG |
xargs -n4 |
while read DATE URL INDEX NAME
do
- python scripts/ranking.py "$NAME" $INDEX $DIR/.menu.html $DATE > $DIR/$URL
+ python scripts/rankings-tables-compile.py "$NAME" $INDEX $DIR/.menu.html $DATE > $DIR/$URL
done
diff --git a/bin/target-ranking-files.sh b/bin/rankings-target-files.sh
index 001834f..001834f 100755
--- a/bin/target-ranking-files.sh
+++ b/bin/rankings-target-files.sh
diff --git a/bin/generate-statics.sh b/bin/statics-generate.sh
index 4369aa7..9c2fa92 100755
--- a/bin/generate-statics.sh
+++ b/bin/statics-generate.sh
@@ -10,7 +10,7 @@ cat $1 |
read OUTPUT_FILE
if [ -n "$CONTENT_FILE" ]
then
- python scripts/static.py $CONTENT_DIR/$CONTENT_FILE "$HEADER" > $OUTPUT_DIR/$OUTPUT_FILE
- python scripts/static-menu.py $OUTPUT_DIR/$OUTPUT_FILE $OUTPUT_DIR/.menu.html
+ python scripts/statics-compile.py $CONTENT_DIR/$CONTENT_FILE "$HEADER" > $OUTPUT_DIR/$OUTPUT_FILE
+ python scripts/menus-write.py $OUTPUT_DIR/$OUTPUT_FILE $OUTPUT_DIR/.menu.html
fi
done