Lines Matching +full:- +full:- +full:detach +full:- +full:sig
3 # makesrcdist - make a source distribution of CUPS.
9 if test ! -f scripts/makesrcdist; then
10 echo "Run this script from the top-level CUPS source directory, e.g.:"
18 if (git status | grep -v makesrcdist | grep -v makerpm | grep -q modified:); then
20 git status | grep -v makesrcdist | grep modified:
27 rev=`git show --oneline | head -1 | awk '{print $1}'`
29 fileversion="2.3git-$rev"
30 fileurl="file://$TMPDIR/cups-${fileversion}-source.tar.gz"
33 # Use version from command-line
37 …fileurl="https://github.com/apple/cups/releases/download/v$fileversion/cups-${fileversion}-source.…
41 cupsversionpatch=`echo $version | awk -F. '{if (NF == 3) { print $3 } else { print "0" } }'`
44 temp=`grep AC_INIT configure.ac | awk '{print $2}' | sed -e '1,$s/^\[//' -e '1,$s/\],$//'`
50 temp=`grep CUPS_VERSION cups/cups.h | grep -v CUPS_VERSION_ | awk '{print $4}'`
62 temp=`head -1 README.md | awk '{print $4}'`
68 temp=`head -1 INSTALL.md | awk '{print $4}'`
74 temp=`head -6 CHANGES.md | grep "Changes in" | awk '{print $4}'`
81 git tag -m "Tag $version" v$version
85 fileurl=`echo $fileurl | sed -e '1,$s/\\//\\\\\\//g'`
86 file="$HOME/cups-$fileversion-source.tar"
89 rm -rf $TMPDIR/cups-$version
90 mkdir $TMPDIR/cups-$version
91 git archive --format tar HEAD | (cd $TMPDIR/cups-$version; tar xf -)
94 cd $TMPDIR/cups-$version
95 sed -e '1,$s/@CUPS_VERSION@/'$version'/' \
96 -e '1,$s/^Source:.*/Source: '$fileurl'/' \
99 rm -rf .gitignore
103 tar cf $file cups-$version
108 rm -f $file
110 gzip -v9 $file
115 test -f $file.gz.sig && rm -f $file.gz.sig
116 gpg --detach-sign -u security@cups.org $file.gz
120 rm -rf cups-$version
122 echo "Done - files in $HOME."