-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debian: new release, push, build, publish scripts
- Loading branch information
Showing
8 changed files
with
215 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ depcomp | |
install-sh | ||
missing | ||
src/ceph_ver.h | ||
release |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
vers=$1 | ||
[ -z "$vers" ] && echo specify version && exit 1 | ||
|
||
./pull.sh $vers gz dsc | ||
|
||
for dist in sid squeeze lenny | ||
do | ||
if [ -e ~/debian/$dist.tgz ]; then | ||
echo updating $dist base.tgz | ||
pbuilder update --basetgz ~/debian/$dist.tgz --distribution $dist | ||
else | ||
echo building $dist base.tgz | ||
pbuilder create --basetgz ~/debian/$dist.tgz --distribution $dist | ||
fi | ||
|
||
dvers="$vers-1" | ||
[ "$dist" = "squeeze" ] && dvers="$dvers~bpo60+1" | ||
[ "$dist" = "lenny" ] && dvers="$dvers~bpo50+1" | ||
echo debian vers $dvers | ||
|
||
echo building debs for $dist | ||
pbuilder build --basetgz ~/debian/$dist.tgz --distribution $dist \ | ||
--buildresult release/$vers \ | ||
--debbuildopts -j`grep -c processor /proc/cpuinfo` \ | ||
release/$vers/ceph_$dvers.dsc | ||
|
||
done | ||
|
||
|
||
# do lintian checks | ||
for dist in sid squeeze lenny | ||
do | ||
dvers="$vers-1" | ||
[ "$dist" = "squeeze" ] && dvers="$dvers~bpo60+1" | ||
[ "$dist" = "lenny" ] && dvers="$dvers~bpo50+1" | ||
echo lintian checks for $dvers | ||
lintian release/$vers/*$dvers*.deb | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
repo=~/debian | ||
|
||
vers=$1 | ||
[ -z "$vers" ] && echo specify version && exit 1 | ||
[ ! -d "release/$vers" ] && echo missing release/$vers && exit 1 | ||
|
||
if echo $vers | grep -q git ; then | ||
component="ceph-unstable" | ||
else | ||
component="ceph-stable" | ||
fi | ||
|
||
echo vers $vers | ||
echo component $component | ||
|
||
for dist in sid squeeze lenny | ||
do | ||
dvers="$vers-1" | ||
[ "$dist" = "squeeze" ] && dvers="$dvers~bpo60+1" | ||
[ "$dist" = "lenny" ] && dvers="$dvers~bpo50+1" | ||
echo debian dist $dist vers $dvers | ||
|
||
for f in release/$vers/ceph_${dvers}_*.changes | ||
do | ||
reprepro -b $repo -C $component --ignore=wrongdistribution include $dist $f | ||
done | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
remote=ceph.newdream.net | ||
vers=$1 | ||
[ -z "$vers" ] && echo specify version && exit 1 | ||
|
||
test -d release/$vers || mkdir -p release/$vers | ||
|
||
shift | ||
|
||
if [ -z "$*" ]; then | ||
echo fetching $vers | ||
rsync -auv sage@$remote:release/$vers/ release/$vers | ||
else | ||
for e in $*; do | ||
echo fetching $vers/*.$e | ||
rsync -auv sage@$remote:release/$vers/\*.$e release/$vers | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
remote=ceph.newdream.net | ||
vers=$1 | ||
[ -z "$vers" ] && echo specify version && exit 1 | ||
[ ! -d release/$vers ] && echo release/$vers dne && exit 1 | ||
|
||
shift | ||
|
||
if [ -z "$*" ]; then | ||
echo pushing $vers | ||
rsync -auv release/$vers/ $remote:release/$vers | ||
else | ||
for e in $*; do | ||
echo pushing $vers/*.$e | ||
rsync -auv release/$vers/*.$e $remote:release/$vers | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
vers=`grep AM_INIT_AUTOMAKE configure.ac | head -1 | cut '-d ' -f 2 | sed 's/)//'` | ||
echo vers $vers | ||
|
||
repo=$1 | ||
force=$2 | ||
|
||
[ -z "$repo" ] && echo stable or unstable && exit 1 | ||
|
||
if git diff --quiet ; then | ||
echo repository is clean | ||
else | ||
echo | ||
echo "**** REPOSITORY IS DIRTY ****" | ||
echo | ||
if [ "$force" != "force" ]; then | ||
echo "add 'force' argument if you really want to continue." | ||
exit 1 | ||
fi | ||
echo "forcing." | ||
fi | ||
|
||
echo generating git version stamp | ||
cd src | ||
./make_version | ||
gitver=`grep GIT_VER ceph_ver.h | awk '{print $3}' | cut -c 1-8` | ||
echo gitver $gitver | ||
cd .. | ||
|
||
if [ "$repo" = "unstable" ]; then | ||
versuffix=`date "+%Y%m%d%H%M"` | ||
finalvers="${vers}git${versuffix}-$gitver" | ||
else | ||
finalvers="$vers" | ||
fi | ||
|
||
echo final vers $finalvers | ||
|
||
echo building tarball | ||
make dist | ||
|
||
echo extracting | ||
mkdir -p release/$finalvers | ||
cd release/$finalvers | ||
|
||
tar zxf ../../ceph-$vers.tar.gz | ||
[ "$vers" != "$finalvers" ] && mv ceph-$vers ceph-$finalvers | ||
tar zcf ceph_$finalvers.orig.tar.gz ceph-$finalvers | ||
|
||
for dist in sid squeeze lenny | ||
do | ||
echo building $dist dsc | ||
# mkdir $dist | ||
# cd $dist | ||
|
||
dvers="$finalvers-1" | ||
[ "$dist" = "squeeze" ] && dvers="$dvers~bpo60+1" | ||
[ "$dist" = "lenny" ] && dvers="$dvers~bpo50+1" | ||
|
||
comment="" | ||
[ -n "$versuffix" ] && comment="git snapshot " | ||
[ "$dist" != "sid" ] && comment="${comment}$dist backport" | ||
|
||
if [ -n "$comment" ]; then | ||
cd ceph-$finalvers | ||
DEBEMAIL="[email protected]" dch -b -v "$dvers" "$comment" | ||
cd .. | ||
fi | ||
|
||
dpkg-source -b ceph-* | ||
|
||
# cd .. | ||
done | ||
|
||
rm -r ceph-$finalvers | ||
cp -a ceph_$finalvers.orig.tar.gz ceph-$finalvers.tar.gz | ||
echo finished release $finalvers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
vers=$1 | ||
[ -z "$vers" ] && echo specify version && exit 1 | ||
|
||
./pull.sh $vers dsc changes | ||
|
||
for f in `cd release/$vers ; ls *.{dsc,changes}` | ||
do | ||
if [ -e "release/$vers/$f" ]; then | ||
if head -1 release/$vers/$f | grep -q 'BEGIN PGP SIGNED MESSAGE' ; then | ||
echo already signed $f | ||
else | ||
debsign release/$vers/$f | ||
fi | ||
fi | ||
done |