Changeset 740 for vendor/current/source4/script
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- Location:
- vendor/current/source4/script
- Files:
-
- 15 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/script/depfilter.py
r414 r740 1 #!/usr/bin/ python1 #!/usr/bin/env python 2 2 # 3 3 # Filter out arcs in a dotty graph that are at or below a certain -
vendor/current/source4/script/minimal_includes.pl
r414 r740 12 12 my $opt_remove = 0; 13 13 my $opt_skip_system = 0; 14 my $opt_waf = 0; 14 15 15 16 ##################################################################### … … 44 45 my $fname = shift; 45 46 my $obj; 46 if ($fname =~ s/(.*)\.c$/$1.o/) { 47 if ($opt_waf) { 48 my $ret = `../buildtools/bin/waf $fname 2>&1`; 49 return $ret 50 } 51 if ($fname =~ s/(.*)\..*$/$1.o/) { 47 52 $obj = "$1.o"; 48 53 } else { … … 68 73 $lines->[$i] = ""; 69 74 70 `/bin/mv -f $fname $fname.misaved` && die "failed to rename $fname"; 75 my $mname = $fname . ".misaved"; 76 77 unlink($mname); 78 rename($fname, $mname) || die "failed to rename $fname"; 71 79 save_lines($fname, $lines); 72 80 … … 80 88 } else { 81 89 print "$fname: removing $line\n"; 90 unlink($mname); 82 91 return; 83 92 } … … 88 97 89 98 $lines->[$i] = $line; 90 `/bin/mv -f $fname.misaved $fname` &&die "failed to restore $fname";99 rename($mname, $fname) || die "failed to restore $fname"; 91 100 } 92 101 … … 139 148 --remove remove includes, don't just list them 140 149 --skip-system don't remove system/ includes 150 --waf use waf target conventions 141 151 "; 142 152 } … … 148 158 'remove' => \$opt_remove, 149 159 'skip-system' => \$opt_skip_system, 160 'waf' => \$opt_waf, 150 161 ); 151 162 -
vendor/current/source4/script/mkproto.pl
r414 r740 129 129 my ($file,$line) = @_; 130 130 131 if ($line =~ /^ _PUBLIC_FN_(GLOBAL|LOCAL)_(CONST_STRING|STRING|BOOL|bool|CHAR|INTEGER|LIST)\((\w+),.*\)/o) {131 if ($line =~ /^FN_(GLOBAL|LOCAL)_(CONST_STRING|STRING|BOOL|bool|CHAR|INTEGER|LIST)\((\w+),.*\)/o) { 132 132 my $scope = $1; 133 133 my $type = $2; … … 148 148 ); 149 149 150 $file->("$tmap{$type} $name($smap{$scope});\n");150 $file->("$tmap{$type}lpcfg_$name($smap{$scope});\n"); 151 151 } 152 152 } … … 191 191 next if ($line =~ /^\/|[;]/); 192 192 193 if ($line =~ /^ _PUBLIC_FN_/) {193 if ($line =~ /^FN_/) { 194 194 handle_loadparm($public_file, $line); 195 195 handle_loadparm($private_file, $line); -
vendor/current/source4/script/mkrelease.sh
r414 r740 7 7 fi 8 8 9 OUTDIR=`mktemp -d samba-XXXXX` 10 (git archive --format=tar HEAD | (cd $OUTDIR/ && tar xf -)) 9 cd source4 10 ../buildtools/bin/waf dist 11 TGZFILE="`echo *.tar.gz`" 12 gunzip $TGZFILE 13 TARFILE="`echo *.tar`" 11 14 12 echo SAMBA_VERSION_IS_GIT_SNAPSHOT=no >> $OUTDIR/source4/VERSION13 14 rm -f $OUTDIR/source4/ldap_server/devdocs/rfc????.txt \15 $OUTDIR/source4/heimdal/lib/wind/rfc????.txt16 17 #Prepare the tarball for a Samba4 release, with some generated files,18 #but without Samba3 stuff (to avoid confusion)19 ( cd $OUTDIR/ || exit 120 rm -rf README Manifest Read-Manifest-Now Roadmap source3 packaging docs-xml examples swat WHATSNEW.txt MAINTAINERS || exit 121 cd source4 || exit 122 ./autogen.sh || exit 123 ./configure || exit 124 make dist || exit 125 ) || exit 126 27 VERSION_FILE=$OUTDIR/source4/version.h28 if [ ! -f $VERSION_FILE ]; then29 echo "Cannot find version.h at $VERSION_FILE"30 exit 1;31 fi32 33 VERSION=`sed -n 's/^SAMBA_VERSION_STRING=//p' $VERSION_FILE`34 echo "Version: $VERSION"35 mv $OUTDIR samba-$VERSION || exit 136 tar -cf samba-$VERSION.tar samba-$VERSION || (rm -rf samba-$VERSION; exit 1)37 rm -rf samba-$VERSION || exit 138 15 echo "Now run: " 39 echo "gpg --detach-sign --armor samba-$VERSION.tar"40 echo "gzip samba-$VERSION.tar"16 echo "gpg --detach-sign --armor $TARFILE" 17 echo "gzip $TARFILE" 41 18 echo "And then upload " 42 echo " samba-$VERSION.tar.gz samba-$VERSION.tar.asc"19 echo "$TARFILE.gz $TARFILE.asc" 43 20 echo "to pub/samba/samba4/ on samba.org" 44 45 46
Note:
See TracChangeset
for help on using the changeset viewer.