File: get-orig-source

package info (click to toggle)
readseq 1-13
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 736 kB
  • sloc: ansic: 9,340; makefile: 426; sh: 32
file content (38 lines) | stat: -rw-r--r-- 733 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
prog=readseq
version=1
dir="$prog"-"$version"
tardir=`pwd`/../tarballs/"$dir"
# url="ftp://ftp.bio.indiana.edu/molbio/readseq/version1/src"
url="http://iubio.bio.indiana.edu/soft/molbio/readseq/version1/src/"

mkdir -p "$tardir"
cd "$tardir"

files="add.gdemenu
       alphabet.std
       Formats
       macinit.c
       macinit.r
       Make.com
       Makefile
       Make.ncbi
       multi.std
       nucleic.std
       Readme
       readseq.c
       Readseq.help
       readseqSIOW.make
       Stdfiles
       upper.std
       ureadasn.c
       ureadseq.c
       ureadseq.h"

for file in $files ; do
    wget "$url/$file"
done

cd ..
GZIP="--best --no-name" tar -czf "$prog"_"$version".orig.tar.gz "$dir"
rm -rf "$dir"