buildall 543 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. if test $# -lt 1; then
  3. echo "Usage: $0 directory"
  4. exit 1
  5. fi
  6. #Build hub/leaf
  7. ./build -C -n all
  8. #Then package up each cfg
  9. cfgs="`find \"$@\" -name \"*.cfg\" | grep -v \"disabled\"`"
  10. for cfg in $cfgs
  11. do
  12. if test "`grep 'PACKNAME' $cfg`x" != "x"; then
  13. #Dont compile, just package up and dont rm old binaries.
  14. ./build -n -P -q $cfg -s bdrewery@endurance.quadspeedi.net:public_html/builds/ all
  15. fi
  16. done
  17. chmod 0700 misc/id_dsa
  18. ssh -i misc/id_dsa bdrewery@endurance.quadspeedi.net chmod 0644 public_html/builds/*.tar.gz
  19. rm *.tar.gz