summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-09-13 15:18:52 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-09-13 15:58:01 +1000
commit45c580575f38a2e5f7952aaad9921a53723b9f66 (patch)
treee42b990cc81b3b0e6d586f0c3533cb87fe020382 /script
parent94886797bc6fdbf9adad221ae79021232ec03278 (diff)
downloadsamba-45c580575f38a2e5f7952aaad9921a53723b9f66.tar.gz
samba-45c580575f38a2e5f7952aaad9921a53723b9f66.tar.bz2
samba-45c580575f38a2e5f7952aaad9921a53723b9f66.zip
script/librelease.sh: automate Samba4 alpha releases
Diffstat (limited to 'script')
-rwxr-xr-xscript/librelease.sh22
1 files changed, 14 insertions, 8 deletions
diff --git a/script/librelease.sh b/script/librelease.sh
index 089b371b7d..ac82762d30 100755
--- a/script/librelease.sh
+++ b/script/librelease.sh
@@ -1,8 +1,13 @@
#!/bin/bash
# make a release of a Samba library
-GPG_USER='Samba Library Distribution Key <samba-bugs@samba.org>'
-GPG_KEYID='13084025'
+[ -z "$GPG_USER" ] && {
+ GPG_USER='Samba Library Distribution Key <samba-bugs@samba.org>'
+}
+
+[ -z "$GPG_KEYID" ] && {
+ GPG_KEYID='13084025'
+}
if [ ! -d ".git" ]; then
echo "Run this script from the top-level directory in the"
@@ -20,6 +25,7 @@ umask 0022
release_lib() {
lib="$1"
srcdir="$2"
+ ftpdir="$3"
pushd $srcdir
@@ -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"