1
0
mirror of https://github.com/danog/fast-gpio.git synced 2024-11-26 20:04:37 +01:00

added remote compile script

This commit is contained in:
greenbreakfast 2016-08-09 18:46:05 -04:00
parent b1216565dd
commit c278d8b45d

20
tools/remote_compile.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/sh
## define the remote server and package
server="rajiv@build.onion.io"
remotePath="/home/rajiv/OpenWRT-Buildroot/openwrt/dl"
package="fast-gpio"
localPath="../$package"
## upload project to remote server
cmd="rsync -va --progress $localPath $server:$remotePath"
echo "$cmd"
eval "$cmd"
## create a tar from the file, run the compile
cmd="ssh $server \"cd $remotePath && tar -zcvf $package.tar.gz $package && cd .. && make package/feeds/onion/$package/compile V=99\""
echo "$cmd"
eval "$cmd"