diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-04-26 09:59:24 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-04-26 09:59:24 -0400 |
commit | 7586933c85593a8f2cb11e47ee11c8b68a89f14b (patch) | |
tree | 047e9aed814eadb41ab94db62b153d942119ae5c /tools | |
parent | c0447c4d983476fef97ff33e5a64256806385f80 (diff) | |
download | cups-7586933c85593a8f2cb11e47ee11c8b68a89f14b.tar.gz |
Rename "tools" to "scripts", since that's what is contained.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checkglobals | 32 | ||||
-rwxr-xr-x | tools/listpublic | 12 | ||||
-rwxr-xr-x | tools/makesrcdist | 114 | ||||
-rwxr-xr-x | tools/makesrcdist-obsolete | 146 | ||||
-rwxr-xr-x | tools/pdftops-darwin.sh | 44 | ||||
-rwxr-xr-x | tools/testrpm | 26 |
6 files changed, 0 insertions, 374 deletions
diff --git a/tools/checkglobals b/tools/checkglobals deleted file mode 100755 index 4d15387ea..000000000 --- a/tools/checkglobals +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -# -# Check for global symbols that don't need to be made global... -# - -for file in *.o; do - functions="" - - for function in `nm -g $file | grep "T " | awk '{print $3}'`; do - found="" - for file2 in *.o; do - if test "$file" = "$file2"; then - continue; - fi - - found=`nm -g $file2 | grep $function` - if test "$found" != ""; then - break; - fi - done - - if test -z "$found"; then - functions="$functions $function" - fi - done - - if test -z "$functions"; then - echo "$file: OK" - else - echo "$file: $functions" - fi -done diff --git a/tools/listpublic b/tools/listpublic deleted file mode 100755 index d864e7ee6..000000000 --- a/tools/listpublic +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -# -# List public API symbols... -# - -for function in `nm -g *.so | grep "T " | awk '{print $3}' | grep -v '^_' | sort`; do - found=`grep $function\( *.h | grep -v DEPRECATED` - - if test "x$found" != x; then - echo $function - fi -done diff --git a/tools/makesrcdist b/tools/makesrcdist deleted file mode 100755 index ed7c05f56..000000000 --- a/tools/makesrcdist +++ /dev/null @@ -1,114 +0,0 @@ -#!/bin/sh -# -# makesrcdist - make a source distribution of CUPS. -# - -TMPDIR="${TMPDIR:=/tmp}" - -# Make sure we are running in the right directory... -if test ! -f tools/makesrcdist; then - echo "Run this script from the top-level CUPS source directory, e.g.:" - echo "" - echo " tools/makesrcdist $*" - echo "" - exit 1 -fi - -# See if we have local changes (other than this script...) -if (git status | grep -v makesrcdist | grep -v testrpm | grep -q modified:); then - echo Local changes remain: - git status | grep -v makesrcdist | grep modified: - exit 1 -fi - -# Prep for snapshot or version release... -if test $# = 0; then - # Compute version for snapshot - rev=`git show --oneline | head -1 | awk '{print $1}'` - version="2.3git" - fileversion="2.3git-$rev" - fileurl="file://$TMPDIR/cups-${fileversion}-source.tar.gz" - SIGNFILES=no -else - # Use version from command-line - rev="1" - version=$1 - fileversion=$1 - fileurl="https://github.com/apple/cups/releases/download/v$fileversion/cups-${fileversion}-source.tar.gz" - SIGNFILES=yes - - echo Validating sources... - cupsversionpatch=`echo $version | awk -F. '{if (NF == 3) { print $3 } else { print "0" } }'` - cupsversion=`printf "2.03%02d" $cupsversionpatch` - - temp=`grep AC_INIT configure.ac | awk '{print $2}' | sed -e '1,$s/^\[//' -e '1,$s/\],$//'` - if test "$temp" != $version; then - echo "Still need to update version to $version in configure.ac (saw $temp)" - exit 1 - fi - - temp=`grep CUPS_VERSION cups/cups.h | grep -v CUPS_VERSION_ | awk '{print $4}'` - if test "$temp" != $cupsversion; then - echo "Still need to update CUPS_VERSION to $cupsversion in cups/cups.h (saw $temp)" - exit 1 - fi - - temp=`grep CUPS_VERSION_PATCH cups/cups.h | awk '{print $4}'` - if test "$temp" != $cupsversionpatch; then - echo "Still need to update CUPS_VERSION_PATCH to $cupsversionpatch in cups/cups.h (saw $temp)" - exit 1 - fi - - temp=`head -1 README.md | awk '{print $4}'` - if test "$temp" != "v$version"; then - echo "Still need to update version to v$version in README.md (saw $temp)" - exit 1 - fi - - temp=`head -1 INSTALL.md | awk '{print $4}'` - if test "$temp" != "v$version"; then - echo "Still need to update version to v$version in INSTALL.md (saw $temp)" - exit 1 - fi - - temp=`head -6 CHANGES.md | grep "Changes in" | awk '{print $4}'` - if test "$temp" != "v$version"; then - echo "Still need to add Changes in v$version in CHANGES.md (saw $temp)" - exit 1 - fi - - echo Creating tag for release... - git tag -m "Tag $version" v$version - git push origin v$version -fi - -fileurl=`echo $fileurl | sed -e '1,$s/\\//\\\\\\//g'` -file="cups-$fileversion-source.tar.gz" - -echo Exporting $fileversion... -rm -rf $TMPDIR/cups-$version -mkdir $TMPDIR/cups-$version -git archive --format tar HEAD | (cd $TMPDIR/cups-$version; tar xf -) - -echo Preparing files... -cd $TMPDIR/cups-$version -sed -e '1,$s/@CUPS_VERSION@/'$version'/' \ - -e '1,$s/^Source:.*/Source: '$fileurl'/' \ - <packaging/cups.spec.in \ - >packaging/cups.spec -rm -rf tools .gitignore -cd .. - -echo Archiving... -tar czf $file cups-$version - -if test $SIGNFILES = yes; then - echo Signing... - test -f $file.sig && rm -f $file.sig - gpg --detach-sign -u security@cups.org $file -fi - -echo Removing temporary files... -rm -rf cups-$version - -echo "Done - files in $TMPDIR." diff --git a/tools/makesrcdist-obsolete b/tools/makesrcdist-obsolete deleted file mode 100755 index 0e94f3040..000000000 --- a/tools/makesrcdist-obsolete +++ /dev/null @@ -1,146 +0,0 @@ -#!/bin/sh -# -# makesrcdist - make a source distribution of CUPS. -# - -# Make sure we are running in the right directory... -if test ! -f tools/makesrcdist; then - echo "Run this script from the top-level CUPS source directory, e.g.:" - echo "" - echo " tools/makesrcdist $*" - echo "" - exit 1 -fi - -# Figure out the proper echo options... -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - ac_n=-n - ac_c= -else - ac_n= - ac_c='\c' -fi - -# See if we have local changes (other than this script...) -if (svn st | grep -v makesrcdist | grep -qv '^\?'); then - echo Local changes remain: - svn st | grep -v makesrcdist | grep -v '^\?' - exit 1 -fi - -# Prep for snapshot or version release... -if test $# = 0; then - echo Updating for snapshot... - svn up - - # Compute version for snapshot - rev=`svn info . | grep Revision: | awk '{print $2}'` - version="2.1svn" - revision="-r$rev" - fileversion="2.1svn-r$rev" - fileurl="http://www.cups.org/software/test/cups-$fileversion-source.tar." - url="." -else - # Use version from command-line - rev="1" - version=$1 - revision="" - fileversion=$1 - fileurl="http://www.cups.org/software/$version/cups-$fileversion-source.tar." - url="svn+ssh://src.apple.com/svn/cups/cups.org/tags/release-$version" - - echo Validating sources... - cupsversionpatch=`echo $version | awk -F. '{if (NF == 3) { print $3 } else { print "0" } }'` - cupsversion=`printf "2.01%02d" $cupsversionpatch` - - temp=`grep CUPS_VERSION cups/cups.h | grep -v CUPS_VERSION_ | awk '{print $4}'` - if test "$temp" != $cupsversion; then - echo "Still need to update CUPS_VERSION to $cupsversion in cups/cups.h (saw $temp)" - exit 1 - fi - - temp=`grep CUPS_VERSION_PATCH cups/cups.h | awk '{print $4}'` - if test "$temp" != $cupsversionpatch; then - echo "Still need to update CUPS_VERSION_PATCH to $cupsversionpatch in cups/cups.h (saw $temp)" - exit 1 - fi - - temp=`head -1 README.txt | awk '{print $4}'` - if test "$temp" != "v$version"; then - echo "Still need to update version to v$version in README.txt (saw $temp)" - exit 1 - fi - - temp=`head -1 INSTALL.txt | awk '{print $4}'` - if test "$temp" != "v$version"; then - echo "Still need to update version to v$version in INSTALL.txt (saw $temp)" - exit 1 - fi - - temp=`head -4 CHANGES.txt | grep "CHANGES IN" | awk '{print $4}'` - if test "$temp" != "V$version"; then - echo "Still need to add CHANGES IN V$version in CHANGES.txt (saw $temp)" - exit 1 - fi - - echo Creating tag for release... - svn copy svn+ssh://src.apple.com/svn/cups/cups.org/trunk "$url" \ - -m "Tag $version" || exit 1 -fi - -fileurl=`echo $fileurl | sed -e '1,$s/\\//\\\\\\//g'` - -TMPDIR="${TMPDIR:=/tmp}" - -echo Exporting $fileversion... -rm -rf $TMPDIR/cups-$version -svn export $url $TMPDIR/cups-$version - -echo Updating version information... -cd $TMPDIR/cups-$version/config-scripts - -sed -e '1,$s/^CUPS_VERSION=.*/CUPS_VERSION='$version'/' \ - -e '1,$s/^CUPS_REVISION=.*/CUPS_REVISION='$revision'/' \ - <cups-common.m4 >cups-common.m4.new -mv cups-common.m4.new cups-common.m4 -cd .. - -echo Configuring... -autoconf -f -rm -rf autom4te*.cache -rm -rf everywhere -rm -rf tools -cd .. - -echo $ac_n Archiving...gz$ac_c -sed -e '1,$s/@CUPS_VERSION@/'$version'/' \ - -e '1,$s/^Release:.*/Release: '$rev'/' \ - -e '1,$s/^Source:.*/Source: '$fileurl'gz/' \ - <cups-$version/packaging/cups.spec.in \ - >cups-$version/packaging/cups.spec -tar czf cups-$fileversion-source.tar.gz cups-$version - -echo $ac_n ...bz2$ac_c -sed -e '1,$s/@CUPS_VERSION@/'$version'/' \ - -e '1,$s/^Release:.*/Release: '$rev'/' \ - -e '1,$s/^Source:.*/Source: '$fileurl'bz2/' \ - <cups-$version/packaging/cups.spec.in \ - >cups-$version/packaging/cups.spec -tar cjf cups-$fileversion-source.tar.bz2 cups-$version -echo "..." - -if test -x /usr/bin/md5sum; then - md5sum cups-$fileversion-source.tar.{bz2,gz} | awk '{print $1, "'$fileversion' '$fileversion'/" $2}' -elif test -x /sbin/md5; then - md5 cups-$fileversion-source.tar.{bz2,gz} | awk '{print $4, "'$fileversion' '$fileversion'/" substr($2, 2, length($2) - 2)}' -fi - -for file in cups-$fileversion-source.tar.{bz2,gz}; do - test -f $file.sig && rm -f $file.sig - gpg --detach-sign $file -done - -echo Removing temporary files... -rm -rf cups-$version - -echo "Done - files in $TMPDIR." diff --git a/tools/pdftops-darwin.sh b/tools/pdftops-darwin.sh deleted file mode 100755 index 07d3224c5..000000000 --- a/tools/pdftops-darwin.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -# -# Script to simulate Xpdf/Poppler's pdftops program. -# - -options="" - -while test $# -gt 0; do - option="$1" - shift - - case "$option" in - -expand) - options="$options fit-to-page" - ;; - -h) - echo "Usage: pdftops [options] filename" - echo "Options:" - echo " -expand" - echo " -h" - echo " -level1" - echo " -level2" - echo " -level3" - echo " -noembtt" - echo " -origpagesizes" - echo " -paperw width-points" - echo " -paperh length-points" - echo "" - echo "THIS IS A COMPATIBILITY WRAPPER" - exit 0 - ;; - -paperw | -paperh) - # Ignore width/length in points - shift - ;; - -*) - # Ignore everything else - ;; - *) - /usr/libexec/cups/filter/cgpdftops job user title 1 "$options" "$option" - exit $? - ;; - esac -done diff --git a/tools/testrpm b/tools/testrpm deleted file mode 100755 index 3b700b2c8..000000000 --- a/tools/testrpm +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -x -# -# Test script for making RPMs... -# - -# Make sure we are running in the right directory... -if test ! -f tools/testrpm; then - echo "Run this script from the top-level CUPS source directory, e.g.:" - echo "" - echo " tools/testrpm [rpmbuild options]" - echo "" - exit 1 -fi - -# Strip command-line arguments so we don't create a release tag... -args="$*" -shift $# - -# Get a snapshot of the current source... -. tools/makesrcdist - -# Build the RPM... -echo Building rpm... -#rm -f /usr/src/redhat/RPMS/i386/cups*.rpm -#rm -f /usr/src/redhat/SRPMS/cups*.rpm -rpmbuild -ta $args cups-${fileversion}-source.tar.gz |