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 git clean
-f -x -d lib
/talloc
14 git clean
-f -x -d lib
/replace
16 curbranch
=`git-branch |grep "^*" | tr -d "* "`
19 strver
=`echo ${version} | tr "." "-"`
21 # Checkout the release tag
22 git branch
-f talloc-release-script-
${strver} talloc-
${strver}
23 if [ ! "$?" = "0" ]; then
24 echo "Unable to checkout talloc-${strver} release"
28 git checkout talloc-release-script-
${strver}
30 # Test configure agrees with us
31 confver
=`grep "^AC_INIT" lib/talloc/configure.ac | tr -d "AC_INIT(talloc, " | tr -d ")"`
32 if [ ! "$confver" = "$version" ]; then
33 echo "Wrong version, requested release for ${version}, found ${confver}"
38 cp -a lib
/talloc talloc-
${version}
39 cp -a lib
/replace talloc-
${version}/libreplace
40 pushd talloc-
${version}
43 tar cvzf talloc-
${version}.
tar.gz talloc-
${version}
44 rm -fr talloc-
${version}
47 git checkout
$curbranch
48 git branch
-d talloc-release-script-
${strver}