~ubuntu-branches/ubuntu/quantal/libgail-gnome/quantal

« back to all changes in this revision

Viewing changes to debian/scripts/source.unpack

  • Committer: Bazaar Package Importer
  • Author(s): Akira TAGOH
  • Date: 2003-03-12 00:55:41 UTC
  • Revision ID: james.westby@ubuntu.com-20030312005541-kuxzqwt7bprg11a5
Tags: 1.0.2-2
* debian/patches/000_libgail-gnome-libtool.patch:
  - fixed libtool issue on mipsel. (closes: Bug#184258)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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