Skip to content

Commit

Permalink
script/librelease.sh: automate Samba4 alpha releases
Browse files Browse the repository at this point in the history
  • Loading branch information
abartlet committed Sep 13, 2011
1 parent 9488679 commit 45c5805
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 27 deletions.
22 changes: 14 additions & 8 deletions script/librelease.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#!/bin/bash
# make a release of a Samba library

GPG_USER='Samba Library Distribution Key <[email protected]>'
GPG_KEYID='13084025'
[ -z "$GPG_USER" ] && {
GPG_USER='Samba Library Distribution Key <[email protected]>'
}

[ -z "$GPG_KEYID" ] && {
GPG_KEYID='13084025'
}

if [ ! -d ".git" ]; then
echo "Run this script from the top-level directory in the"
Expand All @@ -20,6 +25,7 @@ umask 0022
release_lib() {
lib="$1"
srcdir="$2"
ftpdir="$3"

pushd $srcdir

Expand Down Expand Up @@ -67,21 +73,21 @@ release_lib() {
}

echo "Transferring for FTP"
rsync -Pav $tarname.asc $tgzname master.samba.org:~ftp/pub/$lib/ || {
rsync -Pav $tarname.asc $tgzname master.samba.org:~ftp/pub/$ftpdir/ || {
exit 1
}
rsync master.samba.org:~ftp/pub/$lib/$tarname.*
rsync master.samba.org:~ftp/pub/$ftpdir/$tarname.*

popd
}

for lib in $*; do
case $lib in
talloc | tdb | tevent)
release_lib $lib "lib/$lib"
talloc | tdb | tevent | ldb)
release_lib $lib "lib/$lib" $lib
;;
ldb)
release_lib $lib "source4/lib/$lib"
samba4)
release_lib $lib "." "samba/$lib"
;;
*)
echo "Unknown library $lib"
Expand Down
19 changes: 0 additions & 19 deletions source4/script/mkrelease.sh

This file was deleted.

0 comments on commit 45c5805

Please sign in to comment.