Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/lib/talloc/script/release-script.sh

    r414 r745  
    11#!/bin/bash
     2
     3LNAME=talloc
     4LINCLUDE=talloc.h
    25
    36if [ "$1" = "" ]; then
     
    69fi
    710
    8 if [ ! -d "lib/talloc" ]; then
     11if [ ! -d "lib/${LNAME}" ]; then
    912    echo "Run this script from the samba base directory."
    1013    exit 1
    1114fi
    12 
    13 # Check exports and signatures are up to date
    14 pushd lib/talloc
    15 ./script/abi_checks.sh talloc talloc.h
    16 abicheck=$?
    17 popd
    18 if [ ! "$abicheck" = "0" ]; then
    19     echo "ERROR: ABI Checks produced warnings!"
    20     exit 1
    21 fi
    22 
    23 git clean -f -x -d lib/talloc
    24 git clean -f -x -d lib/replace
    2515
    2616curbranch=`git branch |grep "^*" | tr -d "* "`
     
    3020
    3121# Checkout the release tag
    32 git branch -f talloc-release-script-${strver} talloc-${strver}
     22git branch -f ${LNAME}-release-script-${strver} ${LNAME}-${strver}
    3323if [ ! "$?" = "0" ];  then
    34     echo "Unable to checkout talloc-${strver} release"
     24    echo "Unable to checkout ${LNAME}-${strver} release"
    3525    exit 1
    3626fi
    3727
    38 git checkout talloc-release-script-${strver}
     28function cleanquit {
     29    #Clean up
     30    git checkout $curbranch
     31    git branch -d ${LNAME}-release-script-${strver}
     32    exit $1
     33}
     34
     35# NOTE: use cleanquit after this point
     36git checkout ${LNAME}-release-script-${strver}
    3937
    4038# Test configure agrees with us
    41 confver=`grep "^AC_INIT" lib/talloc/configure.ac | tr -d "AC_INIT(talloc, " | tr -d ")"`
     39confver=`grep "^AC_INIT" lib/${LNAME}/configure.ac | tr -d "AC_INIT(${LNAME}, " | tr -d ")"`
    4240if [ ! "$confver" = "$version" ]; then
    4341    echo "Wrong version, requested release for ${version}, found ${confver}"
    44     exit 1
     42    cleanquit 1
    4543fi
    4644
     45# Check exports and signatures are up to date
     46pushd lib/${LNAME}
     47./script/abi_checks.sh ${LNAME} ${LINCLUDE}
     48abicheck=$?
     49popd
     50if [ ! "$abicheck" = "0" ]; then
     51    echo "ERROR: ABI Checks produced warnings!"
     52    cleanquit 1
     53fi
     54
     55git clean -f -x -d lib/${LNAME}
     56git clean -f -x -d lib/replace
     57
    4758# Now build tarball
    48 cp -a lib/talloc talloc-${version}
    49 cp -a lib/replace talloc-${version}/libreplace
    50 pushd talloc-${version}
     59cp -a lib/${LNAME} ${LNAME}-${version}
     60cp -a lib/replace ${LNAME}-${version}/libreplace
     61pushd ${LNAME}-${version}
    5162./autogen.sh
    5263popd
    53 tar cvzf talloc-${version}.tar.gz talloc-${version}
    54 rm -fr talloc-${version}
     64tar cvzf ${LNAME}-${version}.tar.gz ${LNAME}-${version}
     65rm -fr ${LNAME}-${version}
    5566
    56 #Clean up
    57 git checkout $curbranch
    58 git branch -d talloc-release-script-${strver}
     67cleanquit 0
     68
Note: See TracChangeset for help on using the changeset viewer.