initial commit
[ETG_Helmet] / SOFTWARE / UTILS / fast-gpio / tools / remote_compile.sh
1 #!/bin/sh
2 ## define the remote server and package
3 server="rajiv@build.onion.io"
4 remotePath="/home/rajiv/OpenWRT-Buildroot/openwrt/dl"
5 package="fast-gpio"
6 localPath="/cygdrive/c/Users/Rajiv/Desktop/onion/fast-gpio"
7 ## upload project to remote server
8 cmd="rsync -va --progress $localPath $server:$remotePath"
9 echo "rsync command: $cmd"
10 eval "$cmd"
11 ## create a tar from the file, run the compile
12 cmd="ssh $server \"cd $remotePath && tar -zcvf $package.tar.gz $package && cd .. && make package/feeds/onion/$package/compile V=99\""
13 echo "$cmd"
14 eval "$cmd"
15
16 ssh rajiv@build.onion.io "cd /home/rajiv/OpenWRT-Buildroot/openwrt/dl && tar -zcvf fast-gpio.tar.gz fast-gpio/ && cd .. && make package/feeds/onion/fast-gpio/compile V ==99"
Contact me: dev (at) shalnoff (dot) com
PGP fingerprint: A6B8 3B23 6013 F18A 0C71 198B 83D8 C64D 917A 5717