]> git.llucax.com Git - software/mutt-debian.git/blob - debian/scripts/source.unpack
Import mutt_1.5.9-2
[software/mutt-debian.git] / debian / scripts / source.unpack
1 #!/bin/sh
2 make -C debian/scripts sh.vars
3 . debian/scripts/sh.vars
4 . debian/scripts/lib
5
6 mkdir -p $STAMP_DIR/upstream/tarballs/ $SOURCE_DIR
7 if [ ! -z "$SRC_TAR_DIR" -a -d "$SRC_TAR_DIR" ];then
8         files=$(find $SRC_TAR_DIR -type f|sort)
9 else
10         VER=$(dpkg-parsechangelog 2>&1|egrep ^Version|cut -d " " -f 2|cut -d "-" -f 1)
11         SRC=$(dpkg-parsechangelog 2>&1|egrep ^Source|cut -d " " -f 2-)
12         files=../${SRC}_${VER}.orig.tar.gz
13 fi
14 for f in $files;do
15         stampfile=$STAMP_DIR/upstream/tarballs/`basename $f`
16         if [ ! -e $stampfile ];then
17                 START $f
18                 if extract_tar ${SOURCE_DIR:-.} $f > $stampfile.log;then
19                         if [ x$SOURCE_DIR = x ];then
20                                 mkdir -p $STAMP_DIR/upstream/files/tarballs
21                                 cp $stampfile.log $STAMP_DIR/upstream/files/tarballs/`basename $f`.list
22                         fi
23                         OK $f
24                         touch $stampfile
25                 else
26                         FAILED $f
27                         exit 1
28                 fi
29         else
30                 ALREADY_DONE $f
31         fi
32 done