~ubuntu-branches/ubuntu/raring/njplot/raring-proposed

« back to all changes in this revision

Viewing changes to debian/get-orig-source

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2007-10-09 22:42:13 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20071009224213-0wy1ab2er3im7kwi
Tags: 2.0-1
* New upstream version that startet proper version numbering
* debian/menu: Apps/Science -> Applications/Science/Biology
* Added debian/watch because upstream startet proper version numbering
* Upstream included man pages, so remove debian/*.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
echo This is outdated, because upstream switched to proper version numbering
 
3
exit
 
4
 
 
5
NAME=njplot
 
6
UTARBALL="$NAME"-unrooted.tar
 
7
rm -rf tmp
 
8
mkdir -p tmp
 
9
cd tmp
 
10
wget --quiet ftp://pbil.univ-lyon1.fr/pub/mol_phylogeny/"$NAME"/"$UTARBALL"
 
11
tar -xf "$UTARBALL"
 
12
rm -f  "$UTARBALL"
 
13
VERSION=`ls -lt | grep '^.rw.r' | sed -e '2,$d' -e 's/^.[-rwxr]\{9\} [0-9] \w\+ \w\+[[:space:]]\+[0-9]\+ \([0-9]\{4\}\)-\([0-9]\{2\}\)-\([0-9]\{2\}\).*/0.\1\2\3/'`
 
14
mkdir "$NAME"-"$VERSION"
 
15
mv *.c makefile "$NAME"-"$VERSION"
 
16
cd "$NAME"-"$VERSION"
 
17
 
 
18
MOREFILES="$NAME.help README bigtest.phb multi.phb test.ph"
 
19
for mf in $MOREFILES ; do
 
20
    wget --quiet ftp://pbil.univ-lyon1.fr/pub/mol_phylogeny/"$NAME"/$mf
 
21
done
 
22
 
 
23
wget --quiet http://pbil.univ-lyon1.fr/software/njplot.html
 
24
wget --quiet http://pbil.univ-lyon1.fr/binaries/njplot.gif
 
25
wget --quiet http://pbil.univ-lyon1.fr/help/helpers.html
 
26
sed -e '/<TABLE BORDER=4 CELLPADDING=8>/,/<\/TABLE>/d' njplot.html \
 
27
    -e 's/"\/binaries\/\(njplot.gif"\)/"\1/' \
 
28
    -e 's/"\/help\/\(helpers.html"\)/"\1/' \
 
29
    -e 's/"\(\/comments.html"\)/"http:\/\/pbil.univ-lyon1.fr\1/' \
 
30
    -e 's/"\(\/pbil.html">\)<IMG SRC="\/binaries\/home.gif">/"http:\/\/pbil.univ-lyon1.fr\1PBIL home page/' \
 
31
    -e '/<I>Back to PBIL home page<\/I>/d' \
 
32
 > njplot_.html
 
33
touch -r njplot.html njplot_.html
 
34
mv njplot_.html njplot.html
 
35
 
 
36
cd ..
 
37
 
 
38
GZIP=-9 tar -czf "$NAME"_"$VERSION".orig.tar.gz "$NAME"-"$VERSION"
 
39
 
 
40
mv "$NAME"_"$VERSION".orig.tar.gz ..
 
41
cd ..
 
42
rm -rf tmp