mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +03:00
script/librelease.sh: automate Samba4 alpha releases
This commit is contained in:
parent
94886797bc
commit
45c580575f
@ -1,8 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# make a release of a Samba library
|
# make a release of a Samba library
|
||||||
|
|
||||||
GPG_USER='Samba Library Distribution Key <samba-bugs@samba.org>'
|
[ -z "$GPG_USER" ] && {
|
||||||
GPG_KEYID='13084025'
|
GPG_USER='Samba Library Distribution Key <samba-bugs@samba.org>'
|
||||||
|
}
|
||||||
|
|
||||||
|
[ -z "$GPG_KEYID" ] && {
|
||||||
|
GPG_KEYID='13084025'
|
||||||
|
}
|
||||||
|
|
||||||
if [ ! -d ".git" ]; then
|
if [ ! -d ".git" ]; then
|
||||||
echo "Run this script from the top-level directory in the"
|
echo "Run this script from the top-level directory in the"
|
||||||
@ -20,6 +25,7 @@ umask 0022
|
|||||||
release_lib() {
|
release_lib() {
|
||||||
lib="$1"
|
lib="$1"
|
||||||
srcdir="$2"
|
srcdir="$2"
|
||||||
|
ftpdir="$3"
|
||||||
|
|
||||||
pushd $srcdir
|
pushd $srcdir
|
||||||
|
|
||||||
@ -67,21 +73,21 @@ release_lib() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo "Transferring for FTP"
|
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
|
exit 1
|
||||||
}
|
}
|
||||||
rsync master.samba.org:~ftp/pub/$lib/$tarname.*
|
rsync master.samba.org:~ftp/pub/$ftpdir/$tarname.*
|
||||||
|
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
for lib in $*; do
|
for lib in $*; do
|
||||||
case $lib in
|
case $lib in
|
||||||
talloc | tdb | tevent)
|
talloc | tdb | tevent | ldb)
|
||||||
release_lib $lib "lib/$lib"
|
release_lib $lib "lib/$lib" $lib
|
||||||
;;
|
;;
|
||||||
ldb)
|
samba4)
|
||||||
release_lib $lib "source4/lib/$lib"
|
release_lib $lib "." "samba/$lib"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown library $lib"
|
echo "Unknown library $lib"
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ ! -d ".git" -o `dirname $0` != "./source4/script" ]; then
|
|
||||||
echo "Run this script from the top-level directory in the"
|
|
||||||
echo "repository as: ./source4/script/mkrelease.sh"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
./buildtools/bin/waf dist
|
|
||||||
TGZFILE="`echo *.tar.gz`"
|
|
||||||
gunzip $TGZFILE
|
|
||||||
TARFILE="`echo *.tar`"
|
|
||||||
|
|
||||||
echo "Now run: "
|
|
||||||
echo "gpg --detach-sign --armor $TARFILE"
|
|
||||||
echo "gzip $TARFILE"
|
|
||||||
echo "And then upload "
|
|
||||||
echo "$TARFILE.gz $TARFILE.asc"
|
|
||||||
echo "to pub/samba/samba4/ on samba.org"
|
|
Loading…
Reference in New Issue
Block a user