7 echo "Please provide version string, eg: 1.2.0"
11 if [ ! -d "lib/${LNAME}" ]; then
12 echo "Run this script from the samba base directory."
16 curbranch
=`git branch |grep "^*" | tr -d "* "`
19 strver
=`echo ${version} | tr "." "-"`
21 # Checkout the release tag
22 git branch
-f ${LNAME}-release-script-${strver} ${LNAME}-${strver}
23 if [ ! "$?" = "0" ]; then
24 echo "Unable to checkout ${LNAME}-${strver} release"
30 git checkout
$curbranch
31 git branch
-d ${LNAME}-release-script-${strver}
35 # NOTE: use cleanquit after this point
36 git checkout
${LNAME}-release-script-${strver}
38 # Test configure agrees with us
39 confver
=`grep "^AC_INIT" lib/${LNAME}/configure.ac | tr -d "AC_INIT(${LNAME}, " | tr -d ")"`
40 if [ ! "$confver" = "$version" ]; then
41 echo "Wrong version, requested release for ${version}, found ${confver}"
45 # Check exports and signatures are up to date
47 .
/script
/abi_checks.sh
${LNAME} ${LINCLUDE}
50 if [ ! "$abicheck" = "0" ]; then
51 echo "ERROR: ABI Checks produced warnings!"
55 git clean
-f -x -d lib
/${LNAME}
56 git clean
-f -x -d lib
/replace
59 cp -a lib
/${LNAME} ${LNAME}-${version}
60 cp -a lib
/replace
${LNAME}-${version}/libreplace
61 pushd ${LNAME}-${version}
64 tar cvzf
${LNAME}-${version}.tar.gz ${LNAME}-${version}
65 rm -fr ${LNAME}-${version}