Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

Location:
vendor/current/lib/talloc/script
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/talloc/script/mksigs.pl

    r414 r740  
    2828
    2929my $in_comment = 0;
     30my $in_doxygen = 0;
    3031my $extern_C_block = 0;
    3132
     
    4041                        next;
    4142                }
     43        }
     44
     45        # find end of DOXYGEN section
     46        if ($in_doxygen) {
     47                if ($LINE =~ /^#\s*else(?:\s+.*)?$/) {
     48                        $in_doxygen = 0;
     49                }
     50                next;
    4251        }
    4352
     
    6978                $LINE .= " " . $LINE2;
    7079        }
     80
     81        # remove DOXYGEN sections
     82        if ($LINE =~ /^#\s*ifdef\s+DOXYGEN(?:\s+.*)?$/) {
     83                $in_doxygen = 1;
     84                next;
     85        }
     86
    7187
    7288        # remove all preprocessor directives
  • vendor/current/lib/talloc/script/mksyms.awk

    r414 r740  
    99BEGIN {
    1010        inheader=0;
     11        indoxygen=0;
    1112}
    1213
     
    2122                next;
    2223        }
     24        if (indoxygen) {
     25                if (match($0,"^#[ \t]*else[ \t]*.*$")) {
     26                        indoxygen = 0;
     27                }
     28                next;
     29        }
    2330}
    2431
    25 /^static/ || /^[ \t]*typedef/ || !/^[a-zA-Z\_]/ {
     32/^static/ || /^[ \t]*typedef/ || !/^[a-zA-Z\_\#]/ {
    2633        next;
    2734}
     
    3441}
    3542
     43/^#[ \t]*ifdef[ \t]*DOXYGEN[ \t]*.*$/ {
     44        indoxygen=1;
     45        next;
     46}
     47
    3648# look for function headers:
    3749{
    3850        gotstart = 0;
    3951        if ($0 ~ /^[A-Za-z_][A-Za-z0-9_]+/) {
    40         gotstart = 1;
     52                gotstart = 1;
    4153        }
    4254        if(!gotstart) {
  • vendor/current/lib/talloc/script/release-script.sh

    r414 r740  
    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.