deploy.old 544 B

1234567891011121314151617
  1. #!/bin/bash
  2. echo "Deploying source and executable from $2 ..."
  3. #echo "Deploying source of $1"
  4. #rsync -av --delete "$2/" "/mnt/flippi/Pi code/"
  5. echo "Deploying executable $1"
  6. rsync -av --delete "$2/Debug/$1" "/mnt/coffeepi/Debug/"
  7. #echo "Deploying on Janztecpi.."
  8. #rsync -av --delete "$2/Debug/$1" "/mnt/janztecpi/Pi code/Debug/"
  9. COUNT=$(cat "$2/buildno")
  10. if [ "$1" == "coffeecode" ]; then
  11. echo "Increasing build No.."
  12. echo $(($COUNT+1)) > "$2/buildno"
  13. echo "Current build number is $(($COUNT+1))"
  14. else
  15. echo "Current build number is $COUNT"
  16. fi