JPRED-2 Add sources of all binaries (except alscript) to Git
[jpred.git] / sources / readseq / Make.com
1 $!
2 $!VAX-VMS cc make file for readseq
3 $!
4 $ echo := write sys$output
5 $ if p1.eqs."TEST" then goto tests
6 $
7 $ echo "compiling readseq..."
8 $ cc readseq, ureadseq
9 $!
10 $ echo "linking readseq..."
11 $ link readseq, ureadseq, sys$library:vaxcrtl/lib
12 $!
13 $tests:
14 $!
15 $ echo "defining readseq symbol:"
16 $ dd = f$environment("default")
17 $ readseq :== $ 'dd'readseq.exe
18 $ show symbol readseq
19 $!
20 $ echo ""
21 $ echo "test for general read/write of all chars:"
22 $ readseq -p alphabet.std -otest.alpha
23 $ diff test.alpha alphabet.std
24 $!
25 $ echo ""
26 $ echo "test for valid format conversions"
27 $!
28 $ readseq -v -p -f=ig   nucleic.std -otest.ig
29 $ readseq -v -p -f=gb   test.ig     -otest.gb
30 $ readseq -v -p -f=nbrf test.gb     -otest.nbrf
31 $ readseq -v -p -f=embl test.nbrf   -otest.embl
32 $ readseq -v -p -f=gcg  test.embl   -otest.gcg
33 $ readseq -v -p -f=strider test.gcg -otest.strider
34 $ readseq -v -p -f=fitch test.strider -otest.fitch
35 $ readseq -v -p -f=fasta test.fitch -otest.fasta
36 $ readseq -v -p -f=pir  test.fasta  -otest.pir
37 $ readseq -v -p -f=ig   test.pir    -otest.ig-b
38 $ diff test.ig test.ig-b
39 $!
40 $ echo ""
41 $ echo "Test for multiple-sequence format conversions:"
42 $ readseq -p -f=ig    multi.std   -otest.m-ig
43 $ readseq -p -f=gb    test.m-ig   -otest.m-gb
44 $ readseq -p -f=nbrf  test.m-gb   -otest.m-nbrf
45 $ readseq -p -f=embl  test.m-nbrf -otest.m-embl
46 $ readseq -p -f=fasta test.m-embl -otest.m-fasta
47 $ readseq -p -f=pir   test.m-fasta -otest.m-pir
48 $ readseq -p -f=msf   test.m-pir  -otest.m-msf
49 $ readseq -p -f=paup  test.m-msf  -otest.m-paup
50 $ readseq -p -f=ig    test.m-paup -otest.m-ig-b
51 $ diff test.m-ig test.m-ig-b
52 $ echo ""
53 $ echo "Expect differences in the header lines due to"
54 $ echo "different format headers.  If any sequence lines"
55 $ echo "differ, or if checksums differ, there is a problem."
56 $!
57 $! #cleanup
58 $! delete test.*;
59 $ echo "-----------"
60 $ echo ""
61 $ echo "To clean up test files, command me:
62 $ echo "  DELETE test.*;"
63 $!