Changeset 740 for vendor/current/lib/talloc/script
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- Location:
- vendor/current/lib/talloc/script
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/talloc/script/mksigs.pl
r414 r740 28 28 29 29 my $in_comment = 0; 30 my $in_doxygen = 0; 30 31 my $extern_C_block = 0; 31 32 … … 40 41 next; 41 42 } 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; 42 51 } 43 52 … … 69 78 $LINE .= " " . $LINE2; 70 79 } 80 81 # remove DOXYGEN sections 82 if ($LINE =~ /^#\s*ifdef\s+DOXYGEN(?:\s+.*)?$/) { 83 $in_doxygen = 1; 84 next; 85 } 86 71 87 72 88 # remove all preprocessor directives -
vendor/current/lib/talloc/script/mksyms.awk
r414 r740 9 9 BEGIN { 10 10 inheader=0; 11 indoxygen=0; 11 12 } 12 13 … … 21 22 next; 22 23 } 24 if (indoxygen) { 25 if (match($0,"^#[ \t]*else[ \t]*.*$")) { 26 indoxygen = 0; 27 } 28 next; 29 } 23 30 } 24 31 25 /^static/ || /^[ \t]*typedef/ || !/^[a-zA-Z\_ ]/ {32 /^static/ || /^[ \t]*typedef/ || !/^[a-zA-Z\_\#]/ { 26 33 next; 27 34 } … … 34 41 } 35 42 43 /^#[ \t]*ifdef[ \t]*DOXYGEN[ \t]*.*$/ { 44 indoxygen=1; 45 next; 46 } 47 36 48 # look for function headers: 37 49 { 38 50 gotstart = 0; 39 51 if ($0 ~ /^[A-Za-z_][A-Za-z0-9_]+/) { 40 gotstart = 1;52 gotstart = 1; 41 53 } 42 54 if(!gotstart) { -
vendor/current/lib/talloc/script/release-script.sh
r414 r740 1 1 #!/bin/bash 2 3 LNAME=talloc 4 LINCLUDE=talloc.h 2 5 3 6 if [ "$1" = "" ]; then … … 6 9 fi 7 10 8 if [ ! -d "lib/ talloc" ]; then11 if [ ! -d "lib/${LNAME}" ]; then 9 12 echo "Run this script from the samba base directory." 10 13 exit 1 11 14 fi 12 13 # Check exports and signatures are up to date14 pushd lib/talloc15 ./script/abi_checks.sh talloc talloc.h16 abicheck=$?17 popd18 if [ ! "$abicheck" = "0" ]; then19 echo "ERROR: ABI Checks produced warnings!"20 exit 121 fi22 23 git clean -f -x -d lib/talloc24 git clean -f -x -d lib/replace25 15 26 16 curbranch=`git branch |grep "^*" | tr -d "* "` … … 30 20 31 21 # Checkout the release tag 32 git branch -f talloc-release-script-${strver} talloc-${strver}22 git branch -f ${LNAME}-release-script-${strver} ${LNAME}-${strver} 33 23 if [ ! "$?" = "0" ]; then 34 echo "Unable to checkout talloc-${strver} release"24 echo "Unable to checkout ${LNAME}-${strver} release" 35 25 exit 1 36 26 fi 37 27 38 git checkout talloc-release-script-${strver} 28 function 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 36 git checkout ${LNAME}-release-script-${strver} 39 37 40 38 # Test configure agrees with us 41 confver=`grep "^AC_INIT" lib/ talloc/configure.ac | tr -d "AC_INIT(talloc, " | tr -d ")"`39 confver=`grep "^AC_INIT" lib/${LNAME}/configure.ac | tr -d "AC_INIT(${LNAME}, " | tr -d ")"` 42 40 if [ ! "$confver" = "$version" ]; then 43 41 echo "Wrong version, requested release for ${version}, found ${confver}" 44 exit 142 cleanquit 1 45 43 fi 46 44 45 # Check exports and signatures are up to date 46 pushd lib/${LNAME} 47 ./script/abi_checks.sh ${LNAME} ${LINCLUDE} 48 abicheck=$? 49 popd 50 if [ ! "$abicheck" = "0" ]; then 51 echo "ERROR: ABI Checks produced warnings!" 52 cleanquit 1 53 fi 54 55 git clean -f -x -d lib/${LNAME} 56 git clean -f -x -d lib/replace 57 47 58 # Now build tarball 48 cp -a lib/ talloc talloc-${version}49 cp -a lib/replace talloc-${version}/libreplace50 pushd talloc-${version}59 cp -a lib/${LNAME} ${LNAME}-${version} 60 cp -a lib/replace ${LNAME}-${version}/libreplace 61 pushd ${LNAME}-${version} 51 62 ./autogen.sh 52 63 popd 53 tar cvzf talloc-${version}.tar.gz talloc-${version}54 rm -fr talloc-${version}64 tar cvzf ${LNAME}-${version}.tar.gz ${LNAME}-${version} 65 rm -fr ${LNAME}-${version} 55 66 56 #Clean up 57 git checkout $curbranch 58 git branch -d talloc-release-script-${strver} 67 cleanquit 0 68
Note:
See TracChangeset
for help on using the changeset viewer.