single package conversion script
authorChristian Weiske <cweiske@cweiske.de>
Tue, 12 Nov 2019 14:18:05 +0000 (15:18 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 12 Nov 2019 14:18:05 +0000 (15:18 +0100)
bin/all-convert.sh
bin/convert-single.sh [new file with mode: 0755]

index 6b05125..e55d4dd 100755 (executable)
@@ -2,10 +2,5 @@
 set -e
 for i in `cat old-data/pkg-download.list`; do
     echo $i
 set -e
 for i in `cat old-data/pkg-download.list`; do
     echo $i
-    ./bin/convert-original.php\
-        old-data/details/$i.json\
-        old-data/devs.ouya.tv/api/v1/apps/$i.json\
-        old-data/devs.ouya.tv/api/v1/apps/$i/download.json\
-        > games/$i.json
-    ./bin/validate-game.sh games/$i.json
+    ./bin/convert-single.sh "$i"
 done
 done
diff --git a/bin/convert-single.sh b/bin/convert-single.sh
new file mode 100755 (executable)
index 0000000..3713674
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+packageName=$1
+./bin/convert-original.php\
+    old-data/details/$packageName.json\
+    old-data/devs.ouya.tv/api/v1/apps/$packageName.json\
+    old-data/devs.ouya.tv/api/v1/apps/$packageName/download.json\
+    > games/$packageName.json
+./bin/validate-game.sh games/$packageName.json