summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/makesrcdist6
-rwxr-xr-xtools/testrpm4
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/makesrcdist b/tools/makesrcdist
index 2d806d6c1..e684fe89e 100755
--- a/tools/makesrcdist
+++ b/tools/makesrcdist
@@ -15,7 +15,7 @@ if test ! -f tools/makesrcdist; then
fi
# See if we have local changes (other than this script...)
-if (git status | grep -v makesrcdist | grep -q modified:); then
+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
@@ -27,14 +27,14 @@ if test $# = 0; then
rev=`git show --oneline | head -1 | awk '{print $1}'`
version="2.2git"
fileversion="2.2git-$rev"
- fileurl="file://$TMPDIR/cups-$fileversion.tar.gz"
+ 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/release-$fileversion/cups-$fileversion-source.tar.gz"
+ fileurl="https://github.com/apple/cups/releases/download/v$fileversion/cups-${fileversion}-source.tar.gz"
SIGNFILES=yes
echo Validating sources...
diff --git a/tools/testrpm b/tools/testrpm
index b933a6538..3b700b2c8 100755
--- a/tools/testrpm
+++ b/tools/testrpm
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -x
#
# Test script for making RPMs...
#
@@ -23,4 +23,4 @@ shift $#
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
+rpmbuild -ta $args cups-${fileversion}-source.tar.gz