~ubuntu-dev/ubuntu/lucid/quilt/lucid-201002101907

« back to all changes in this revision

Viewing changes to quilt/scripts/inspect.in

  • Committer: Bazaar Package Importer
  • Author(s): Raphaël Hertzog, Martin Quinson, Raphaël Hertzog, Ryan Niebur
  • Date: 2009-09-02 22:05:25 UTC
  • mfrom: (1.2.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090902220525-zhckxgbs9wqhyw83
[ Martin Quinson ]
* New upstream release.
* debian/patches/generic-awk: removed since merged upstream.
* debian/patches/*: updated so that they apply again on this release.

[ Raphaël Hertzog ]
* Remove Simon Hormans from Uploaders with his permission.
* debian/patches/fix-manpage-generation: fix Makefile so that
  the manual page is correctly generated with dash too (LP: #402237)
* Improve dh_quilt_patch/unpatch by respecting the QUILT_PATCH_DIR
  environment variable like /usr/share/quilt/quilt.make does.
  Closes: #544668

[ Ryan Niebur ]
* Add myself to Uploaders
* fixes to the arch_all patch to pass test suite
  - port upstream changes to the c version to the bash rewrite
    of backup-files
  - fix backup-files to process all files passed in on the
    command line instead of just the last (a clear bug)
* refresh all patches with -p ab
* add procmail to build deps, needed by tests
* Debian Policy 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
        exit 1
22
22
}
23
23
 
24
 
if [ "$1" = -v ]
25
 
then
26
 
        verbose=1
27
 
        shift
28
 
fi
 
24
options=$(getopt -o v --long sourcedir: -n "${0##*/}" -- "$@") || exit
 
25
 
 
26
eval set -- "$options"
 
27
 
 
28
sourcedir=
 
29
 
 
30
while true
 
31
do
 
32
        case "$1" in
 
33
        -v)
 
34
                verbose=1
 
35
                shift ;;
 
36
        --sourcedir)
 
37
                sourcedir=${2%/}/
 
38
                shift 2 ;;
 
39
        --)
 
40
                shift
 
41
                break ;;
 
42
        esac
 
43
done
 
44
 
 
45
[ "${sourcedir:0:1}" = / ] || sourcedir=$PWD/$sourcedir
29
46
 
30
47
specfile=$1
31
48
if [ $# -ne 1 -o ! -f "$specfile" ]
32
49
then
33
50
        usage
34
51
fi
35
 
 
36
 
if [ "${specfile:0:1}"  != / ]
 
52
if [ "${specfile:0:1}"  = / ]
37
53
then
38
 
        specfile="$PWD/$specfile"
 
54
        specdir=$(dirname "$specfile")
 
55
        specfile=${specfile##*/}
 
56
else
 
57
        specdir=$PWD
39
58
fi
40
 
sourcedir=${specfile%/*}
41
59
 
42
60
tmpdir="$(gen_tempfile -d ${TMPDIR-/var/tmp}/${0##*/})"
43
61
mkdir -p $tmpdir || exit 1
56
74
# create md5 sums, also for uncompressed files
57
75
echo -n "### md5sum: " >&4
58
76
shopt -s nullglob
59
 
for file in *
 
77
for file in $sourcedir/*
60
78
do
61
 
        file=${file##*/}
62
 
        case "$file" in
 
79
        basename=${file##*/}
 
80
        case "$basename" in
63
81
                ready|bigpack|MD5SUMS|MD5SUMS.meta|*.spec|*.changes)
64
82
                        continue
65
83
                        ;;
68
86
        echo -n "." >&4
69
87
        echo "md5sum < $file" >&2
70
88
        set -- $(md5sum < "$file")
71
 
        echo "$1 $file"
 
89
        echo "$1 $basename"
72
90
        case "$(file -b "$file")" in
73
91
                compress*|gzip*)
74
92
                        echo -n "g" >&4
75
93
                        echo "gzip -cd $file | md5sum" >&2
76
94
                        set -- $(gzip -cd "$file" | md5sum)
77
 
                        echo "$1 $file"
 
95
                        echo "$1 $basename"
78
96
                        ;;
79
97
                bzip2*)
80
98
                        echo -n "b" >&4
81
99
                        echo "bzip2 -cd $file | md5sum" >&2
82
100
                        set -- $(bzip2 -cd "$file" | md5sum)
83
 
                        echo "$1 $file"
 
101
                        echo "$1 $basename"
84
102
                        ;;
85
103
        esac
86
104
done > $tmpdir/md5sums
225
243
 
226
244
export PATH="$tmpdir/bin:$PATH"
227
245
rpmbuild --eval "%define _sourcedir $sourcedir" \
228
 
         --eval "%define _specdir   $sourcedir" \
 
246
         --eval "%define _specdir   $specdir" \
229
247
         --eval "%define _builddir  $tmpdir/build" \
 
248
         --eval "%define __patch    $tmpdir/bin/patch" \
 
249
         --eval "%define __tar      $tmpdir/bin/tar" \
230
250
         --nodeps \
231
 
         -bp "$specfile" < /dev/null >&2
 
251
         -bp "$specdir/$specfile" < /dev/null >&2
232
252
status=$?
233
253
echo >&4
234
254
exit $status