3 VERSION
=`perl -e 'use CXGN::Cview; print $CXGN::Cview::VERSION; ' `;
5 echo "Generating the distribution for cview version $VERSION.";
7 LIB_ROOT
=/sgn_website
/perllib
/
8 CGI_ROOT
=/sgn_website
/sgn
/
9 RELEASEDIR
=cview_release
11 echo "Removing old files...";
14 # generating target directories
15 echo "Generating the target directories..."
17 mkdir
$RELEASEDIR/CXGN
;
18 mkdir
$RELEASEDIR/cgi-bin
/
20 echo "Export the svn repository...";
22 svn
export $LIB_ROOT/CXGN
/Cview
$RELEASEDIR/CXGN
/Cview
23 cp -v $LIB_ROOT/CXGN
/Cview.pm
$RELEASEDIR/CXGN
24 cp -v $LIB_ROOT/CXGN
/Version.pm
$RELEASEDIR/CXGN
25 cp -v $LIB_ROOT/CXGN
/Login.pm
$RELEASEDIR/CXGN
26 svn
export $LIB_ROOT/CXGN
/Page
$RELEASEDIR/CXGN
/Page
27 cp -v $LIB_ROOT/CXGN
/Page.pm
$RELEASEDIR/CXGN
29 svn
export $LIB_ROOT/CXGN
/Map
$RELEASEDIR/CXGN
/Map
30 svn
export $LIB_ROOT/CXGN
/Phylo
$RELEASEDIR/CXGN
/Phylo
32 svn
export $LIB_ROOT/JSAN
$RELEASEDIR/JSAN
33 cp -v $LIB_ROOT/CXGN
/JSAN.pm
$RELEASEDIR/CXGN
34 svn
export $LIB_ROOT/CXGN
/Marker
$RELEASEDIR/CXGN
/Marker
35 cp -v $LIB_ROOT/CXGN
/Marker.pm
$RELEASEDIR/CXGN
37 svn
export $LIB_ROOT/CXGN
/VHost
$RELEASEDIR/CXGN
/VHost
38 cp -v $LIB_ROOT/CXGN
/VHost.pm
$RELEASEDIR/CXGN
40 svn
export $LIB_ROOT/CXGN
/Garbage
$RELEASEDIR/CXGN
/Garbage
42 svn
export $LIB_ROOT/CXGN
/Configuration
$RELEASEDIR/CXGN
/Configuration
43 cp -v $LIB_ROOT/CXGN
/Configuration.pm
$RELEASEDIR/CXGN
/Configuration.pm
45 cp -v $LIB_ROOT/CXGN
/Contact.pm
$RELEASEDIR/CXGN
/
46 svn
export $LIB_ROOT/CXGN
/Accession
$RELEASEDIR/CXGN
/Accession
47 cp -v $LIB_ROOT/CXGN
/Accession.pm
$RELEASEDIR/CXGN
/Accession.pm
48 svn
export $LIB_ROOT/CXGN
/AJAX
$RELEASEDIR/CXGN
/AJAX
49 svn
export $LIB_ROOT/CXGN
/DB
$RELEASEDIR/CXGN
/DB
50 cp $LIB_ROOT/CXGN
/Fish.pm
$RELEASEDIR/CXGN
/Fish.pm
52 cp $LIB_ROOT/CXGN
/Cookie.pm
$RELEASEDIR/CXGN
53 svn
export $LIB_ROOT/CXGN
/Tools
$RELEASEDIR/CXGN
/Tools
55 svn
export $LIB_ROOT/CXGN
/Apache
$RELEASEDIR/CXGN
/Apache
57 svn
export $LIB_ROOT/CXGN
/Chromatogram
$RELEASEDIR/CXGN
/Chromatogram
58 cp $LIB_ROOT/CXGN
/Image.pm
$RELEASEDIR/CXGN
60 svn
export $LIB_ROOT/CXGN
/Genomic
$RELEASEDIR/CXGN
/Genomic
62 svn
export $LIB_ROOT/CXGN
/Chado
$RELEASEDIR/CXGN
/Chado
63 svn
export $LIB_ROOT/CXGN
/People
$RELEASEDIR/CXGN
/People
64 cp -v $LIB_ROOT/CXGN
/People.pm
$RELEASEDIR/CXGN
66 cp -v $LIB_ROOT/CXGN
/Phenome.pm
$RELEASEDIR/CXGN
67 svn
export $LIB_ROOT/CXGN
/Phenome
$RELEASEDIR/CXGN
/Phenome
69 svn
export $LIB_ROOT/CXGN
/Physical
$RELEASEDIR/CXGN
/Physical
71 cp -v $LIB_ROOT/CXGN
/LICENSE
$RELEASEDIR/CXGN
73 cp -v $LIB_ROOT/CXGN
/Primers.pm
$RELEASEDIR/CXGN
75 svn
export $LIB_ROOT/CXGN
/Class
$RELEASEDIR/CXGN
/Class
76 svn
export $LIB_ROOT/CXGN
/Error
$RELEASEDIR/CXGN
/Error
77 svn
export $LIB_ROOT/CXGN
/Scrap
$RELEASEDIR/CXGN
/Scrap
78 cp $LIB_ROOT/CXGN
/Scrap.pm
$RELEASEDIR/CXGN
80 svn
export $LIB_ROOT/CXGN
/Search
$RELEASEDIR/CXGN
/Search
81 svn
export $LIB_ROOT/CXGN
/Searches
$RELEASEDIR/CXGN
/Searches
82 cp -v $LIB_ROOT/CXGN
/Tag.pm
$RELEASEDIR/CXGN
84 svn
export $LIB_ROOT/CXGN
/Transcript
$RELEASEDIR/CXGN
/Transcript
85 svn
export $LIB_ROOT/CXGN
/Unigene
$RELEASEDIR/CXGN
/Unigene
87 svn
export $LIB_ROOT/CXGN
/UserPrefs
$RELEASEDIR/CXGN
/UserPrefs
88 cp -v $LIB_ROOT/CXGN
/UserPrefs.pm
$RELEASEDIR/CXGN
90 svn
export $CGI_ROOT/cgi-bin
/cview
$RELEASEDIR/cgi-bin
/cview
/
91 svn
export $CGI_ROOT/cgi-bin
/search
$RELEASEDIR/cgi-bin
/search
92 svn
export $CGI_ROOT/cgi-bin
/markers
$RELEASEDIR/cgi-bin
/markers
94 echo "Copying the Makefile and other stuff...";
96 cp files
/Makefile.PL
$RELEASEDIR/
97 cp -R files
/conf
$RELEASEDIR/conf
98 cp -R files
/doc
$RELEASEDIR/doc
99 cp files
/post_install.sh
$RELEASEDIR/
100 cp files
/README.txt
$RELEASEDIR/
102 echo "tar-ing up the distribution...";
103 tar cf cview_release.v
$VERSION.
tar --exclude "*~" --exclude "*Default.HostConf*" --exclude "*Page/SGN.pm" --exclude "*CGN.pm" --exclude "*FGN.pm" "cview_release";