summarylogtreecommitdiffstats
path: root/upload
diff options
context:
space:
mode:
Diffstat (limited to 'upload')
-rwxr-xr-xupload24
1 files changed, 24 insertions, 0 deletions
diff --git a/upload b/upload
new file mode 100755
index 00000000000..389b4b48331
--- /dev/null
+++ b/upload
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+PRG="$0"
+
+while [ -h "$PRG" ]; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`/"$link"
+ fi
+done
+SCRIPT_HOME=`dirname "$PRG"`
+
+$SCRIPT_HOME/update
+if [ "$?" -eq 1 ]; then
+ echo "Uploading updated TWS"
+ burp -c office $SCRIPT_HOME/*.gz
+ echo "Updating Git"
+ cd $SCRIPT_HOME
+ git commit -a -m "Commit from upload script due to new version"
+ git push
+fi