2
echo This is outdated, because upstream switched to proper version numbering
6
UTARBALL="$NAME"-unrooted.tar
10
wget --quiet ftp://pbil.univ-lyon1.fr/pub/mol_phylogeny/"$NAME"/"$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"
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
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' \
33
touch -r njplot.html njplot_.html
34
mv njplot_.html njplot.html
38
GZIP=-9 tar -czf "$NAME"_"$VERSION".orig.tar.gz "$NAME"-"$VERSION"
40
mv "$NAME"_"$VERSION".orig.tar.gz ..