2 ## define the remote server and package
3 server="rajiv@build.onion.io"
4 remotePath="/home/rajiv/OpenWRT-Buildroot/openwrt/dl"
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"
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\""
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"