|
@@ -0,0 +1,17 @@
|
|
|
+#!/bin/bash
|
|
|
+echo "Deploying source and executable from $2 ..."
|
|
|
+#echo "Deploying source of $1"
|
|
|
+#rsync -av --delete "$2/" "/mnt/flippi/Pi code/"
|
|
|
+echo "Deploying executable $1"
|
|
|
+rsync -av --delete "$2/Debug/$1" "/mnt/coffeepi/Debug/"
|
|
|
+#echo "Deploying on Janztecpi.."
|
|
|
+#rsync -av --delete "$2/Debug/$1" "/mnt/janztecpi/Pi code/Debug/"
|
|
|
+COUNT=$(cat "$2/buildno")
|
|
|
+
|
|
|
+if [ "$1" == "coffeecode" ]; then
|
|
|
+echo "Increasing build No.."
|
|
|
+echo $(($COUNT+1)) > "$2/buildno"
|
|
|
+echo "Current build number is $(($COUNT+1))"
|
|
|
+else
|
|
|
+echo "Current build number is $COUNT"
|
|
|
+fi
|