4 echo "Please provide version string, eg: 1.2.0"
8 if [ ! -d "lib/tdb" ]; then
9 echo "Run this script from the samba base directory."
13 curbranch=`git-branch |grep "^*" | tr -d "* "`
16 strver=`echo ${version} | tr "." "-"`
18 # Checkout the release tag
19 git branch -f tdb-release-script-${strver} tdb-${strver}
20 if [ ! "$?" = "0" ]; then
21 echo "Unable to checkout tdb-${strver} release"
25 git checkout tdb-release-script-${strver}
27 # Test configure agrees with us
28 confver=`grep "^AC_INIT" lib/tdb/configure.ac | tr -d "AC_INIT(tdb, " | tr -d ")"`
29 if [ ! "$confver" = "$version" ]; then
30 echo "Wrong version, requested release for ${version}, found ${confver}"
35 cp -a lib/tdb tdb-${version}
36 cp -a lib/replace tdb-${version}/libreplace
40 tar cvzf tdb-${version}.tar.gz tdb-${version}
44 git checkout $curbranch
45 git branch -d tdb-release-script-${strver}