2009-02-24 21:57:16 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-02-24 22:21:25 +00:00
|
|
|
vers=`grep AM_INIT_AUTOMAKE configure.ac | head -1 | cut '-d ' -f 2 | sed 's/)//'`
|
|
|
|
echo vers $vers
|
|
|
|
|
2009-02-24 21:57:16 +00:00
|
|
|
repo=$1
|
2009-02-24 22:13:37 +00:00
|
|
|
arch=$2
|
2009-02-24 21:57:16 +00:00
|
|
|
|
2009-03-10 20:22:51 +00:00
|
|
|
rm *.deb
|
2009-07-15 21:07:04 +00:00
|
|
|
rm -rf ceph-$vers
|
2009-02-24 21:57:16 +00:00
|
|
|
make dist
|
2009-02-27 22:23:49 +00:00
|
|
|
tar zxvf ceph-$vers.tar.gz
|
2009-02-24 22:21:25 +00:00
|
|
|
cd ceph-$vers
|
2009-02-24 21:57:16 +00:00
|
|
|
./autogen.sh
|
|
|
|
dpkg-buildpackage -rfakeroot
|
|
|
|
cd ..
|
|
|
|
|
2009-02-27 22:23:49 +00:00
|
|
|
# upload
|
2009-02-24 22:13:37 +00:00
|
|
|
rsync -v --progress *$arch.{deb,changes} ceph.newdream.net:debian/dists/$repo/main/binary-$arch
|
2009-02-24 21:57:16 +00:00
|
|
|
rsync -v --progress ceph_* ceph.newdream.net:debian/dists/$repo/main/source
|
|
|
|
|
|
|
|
# rebuild index
|
|
|
|
ssh ceph.newdream.net build_debian_repo.sh
|