4 # A hacky script to freshly compile and distribute the dispense client
7 CLIENT_PATH=/usr/local/bin/dispense
9 #SETPERMS="chown root:root $CLIENT_PATH; chmod u+s $CLIENT_PATH"
10 MAKEMAN="make -C ~tpg/gitclones/opendispense2/docs/"
12 cd ~/gitclones/opendispense2
13 git pull github master
14 make -C src/ clean all
17 ssh-add -l ~/.ssh/wh > /dev/null || ssh-add ~/.ssh/wh
18 SSH='ssh -i '$HOME'/.ssh/wh'
20 # Build 32-bit version
21 ssh tpg@mussel 'cd ~/gitclones/opendispense2_32bit; git pull; make -C src/client clean all'
23 # Store the client and manpages for /away hosts
24 cp ~/gitclones/opendispense2_32bit/dispense /away/wheel/tpg/dispense_32bit
25 cp ~/gitclones/opendispense2/dispense /away/wheel/tpg/dispense_64bit
26 cp /usr/share/man/man1/dispense.1.gz /away/wheel/tpg/dispense.1.gz
29 $SSH root@mussel "cp ~tpg/gitclones/opendispense2_32bit/dispense $CLIENT_PATH; $SETPERMS; $MAKEMAN"
30 $SSH root@mooneye "cp ~tpg/gitclones/opendispense2_32bit/dispense $CLIENT_PATH; $SETPERMS; $MAKEMAN"
33 $SSH root@motsugo "cp ~tpg/gitclones/opendispense2/dispense $CLIENT_PATH; $SETPERMS; $MAKEMAN"
34 $SSH root@mantis "cp ~tpg/gitclones/opendispense2/dispense $CLIENT_PATH; $SETPERMS; $MAKEMAN"
35 #$SSH root@martello "cp ~tpg/gitclones/opendispense2/dispense $CLIENT_PATH; $SETPERMS; $MAKEMAN"
36 $SSH root@merlo "cp ~tpg/gitclones/opendispense2/dispense $CLIENT_PATH; $SETPERMS; $MAKEMAN"
39 $SSH root@meersau "cp ~tpg/dispense_32bit $CLIENT_PATH; $SETPERMS; cp ~tpg/dispense.1.gz /usr/share/man/man1/dispense.1.gz"