]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: script to build and upload debs to repo
authorSage Weil <sage@newdream.net>
Tue, 24 Feb 2009 21:57:16 +0000 (13:57 -0800)
committerSage Weil <sage@newdream.net>
Tue, 24 Feb 2009 21:57:16 +0000 (13:57 -0800)
build_upload_debian_packages.sh [new file with mode: 0755]

diff --git a/build_upload_debian_packages.sh b/build_upload_debian_packages.sh
new file mode 100755 (executable)
index 0000000..3e83ee1
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+repo=$1
+
+rm ceph-*.tar.gz
+rm -r ceph-0.?
+make dist
+tar zxvf ceph-*.tar.gz
+cd ceph-0.?
+./autogen.sh
+dpkg-buildpackage -rfakeroot
+cd ..
+
+rsync -v --progress *amd64.{deb,changes} ceph.newdream.net:debian/dists/$repo/main/binary-amd64
+rsync -v --progress ceph_* ceph.newdream.net:debian/dists/$repo/main/source
+
+# rebuild index
+ssh ceph.newdream.net build_debian_repo.sh
\ No newline at end of file