Most of the API is implemented
[louyapi.git] / bin / copy-from-stouyapi.sh
diff --git a/bin/copy-from-stouyapi.sh b/bin/copy-from-stouyapi.sh
new file mode 100755 (executable)
index 0000000..a0075ca
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+# copy all generated static files from stouyapi to here
+stouyapidir=/home/cweiske/dev/ouya/stouyapi
+targetdir=./src/main/assets/stouyapi-www
+
+#cd to louyapi directory
+SCRIPT=$(readlink -f "$0")
+SCRIPTPATH=$(dirname "$SCRIPT")
+cd "$SCRIPTPATH/../$targetdir"
+
+rm -r *
+cp -a "$stouyapidir/www/agreements" .
+cp -a "$stouyapidir/www/api" .
+cp -a "$stouyapidir/www/favicon.ico" .
+cp -a "$stouyapidir/www/gen-qr" .
+cp -a "$stouyapidir/www/updates-ouya_1_1.json" .