Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. autobuilder.sh
  2. --- /tmp/test/gitbuilder/autobuilder.sh 2015-08-21 13:53:31.971931227 +0800
  3. +++ autobuilder.sh 2015-07-02 10:59:09.588364316 +0800
  4. @@ -54,6 +54,12 @@
  5. trap "echo 'Killing (SIGINT)'; kill -TERM -$XPID; exit 1" SIGINT
  6. trap "echo 'Killing (SIGTERM)'; kill -TERM -$XPID; exit 1" SIGTERM
  7. wait; wait
  8. + mkdir -p /ceph_repos/ceph-deb-trusty-x86_64-basic/ref/${branch#*/}
  9. + cp -r --preserve=links /ceph_tmp/release/Ubuntu/{conf,db,dists,pool,trusty,version} /ceph_repos/ceph-deb-trusty-x86_64-basic/ref/${branch#*/}
  10. + echo $ref > /ceph_repos/ceph-deb-trusty-x86_64-basic/ref/${branch#*/}/sha1
  11. +
  12. + ln -s /ceph_repos/ceph-deb-trusty-x86_64-basic/ref/${branch#*/} /ceph_repos/ceph-deb-trusty-x86_64-basic/sha1/$ref
  13. + rm -rf /ceph_tmp/release/*
  14. done
  15.  
  16. sleep 5
  17.  
  18. branches-local
  19. you can use the easy way to assign to branch which you want it.
  20. example:
  21. branches-local.bak
  22. #!/bin/sh
  23. echo 'origin/dillaman_librbd_cache_2'
  24.  
  25. branches.sh
  26. you need change branches script
  27. example:
  28. #!/bin/bash
  29. DIR=$(dirname $0)
  30. cd "$DIR/build"
  31.  
  32. if [ -x ../branches-local ]; then
  33. #exec ../branches-local "$@"
  34. #exec ../branches-local.808 "$@"
  35. exec ../branches-local.bak "$@"
  36. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement