Skip to content

Instantly share code, notes, and snippets.

@zhouyuan
Created August 21, 2015 05:56
Show Gist options
  • Save zhouyuan/2a2c4d1b20ff42efc351 to your computer and use it in GitHub Desktop.
Save zhouyuan/2a2c4d1b20ff42efc351 to your computer and use it in GitHub Desktop.
--- /tmp/test/gitbuilder/autobuilder.sh 2015-08-21 13:53:31.971931227 +0800
+++ autobuilder.sh 2015-07-02 10:59:09.588364316 +0800
@@ -54,6 +54,12 @@
trap "echo 'Killing (SIGINT)'; kill -TERM -$XPID; exit 1" SIGINT
trap "echo 'Killing (SIGTERM)'; kill -TERM -$XPID; exit 1" SIGTERM
wait; wait
+ mkdir -p /ceph_repos/ceph-deb-trusty-x86_64-basic/ref/${branch#*/}
+ cp -r --preserve=links /ceph_tmp/release/Ubuntu/{conf,db,dists,pool,trusty,version} /ceph_repos/ceph-deb-trusty-x86_64-basic/ref/${branch#*/}
+ echo $ref > /ceph_repos/ceph-deb-trusty-x86_64-basic/ref/${branch#*/}/sha1
+
+ ln -s /ceph_repos/ceph-deb-trusty-x86_64-basic/ref/${branch#*/} /ceph_repos/ceph-deb-trusty-x86_64-basic/sha1/$ref
+ rm -rf /ceph_tmp/release/*
done
sleep 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment