4 echo "Please provide version string, eg: 1.2.0"
8 if [ ! -d "lib/talloc" ]; 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 talloc-release-script-
${strver} talloc-
${strver}
20 if [ ! "$?" = "0" ]; then
21 echo "Unable to checkout talloc-${strver} release"
25 git checkout talloc-release-script-
${strver}
27 # Test configure agrees with us
28 confver
=`grep "^AC_INIT" lib/talloc/configure.ac | tr -d "AC_INIT(talloc, " | tr -d ")"`
29 if [ ! "$confver" = "$version" ]; then
30 echo "Wrong version, requested release for ${version}, found ${confver}"
35 cp -a lib
/talloc talloc-
${version}
36 cp -a lib
/replace talloc-
${version}/libreplace
37 pushd talloc-
${version}
40 tar cvzf talloc-
${version}.
tar.gz talloc-
${version}
41 rm -fr talloc-
${version}
44 git checkout
$curbranch
45 git branch
-d talloc-release-script-
${strver}