pub.sh 341 B

1234567891011121314151617
  1. #!/bin/sh
  2. # hand made deploy script for n950
  3. APP=Meerc
  4. HOST=192.168.0.198
  5. qmake ${APP}.pro
  6. make
  7. rm -rf dist
  8. mkdir -p dist
  9. make INSTALL_ROOT=${PWD}/dist install
  10. ssh user@${HOST} "pkill ${APP}"
  11. dpkg-buildpackage -b
  12. scp ../meerc*.deb root@${HOST}:
  13. ssh root@${HOST} "dpkg -i hello*.deb"
  14. ssh user@${HOST} ". ./.profile; /opt/${APP}/bin/${APP}"