1 | #!/bin/sh |
---|
2 | |
---|
3 | python ./scripts/check_python.py |
---|
4 | [ $? -ne 0 ] && exit 1 |
---|
5 | |
---|
6 | SAMPLES=" |
---|
7 | datatypes_conf.xml.sample |
---|
8 | reports_wsgi.ini.sample |
---|
9 | tool_conf.xml.sample |
---|
10 | tool_data_table_conf.xml.sample |
---|
11 | universe_wsgi.ini.sample |
---|
12 | tool-data/alignseq.loc.sample |
---|
13 | tool-data/annotation_profiler_options.xml.sample |
---|
14 | tool-data/annotation_profiler_valid_builds.txt.sample |
---|
15 | tool-data/bfast_indexes.loc.sample |
---|
16 | tool-data/binned_scores.loc.sample |
---|
17 | tool-data/blastdb.loc.sample |
---|
18 | tool-data/bowtie_indices.loc.sample |
---|
19 | tool-data/bowtie_indices_color.loc.sample |
---|
20 | tool-data/encode_datasets.loc.sample |
---|
21 | tool-data/liftOver.loc.sample |
---|
22 | tool-data/maf_index.loc.sample |
---|
23 | tool-data/maf_pairwise.loc.sample |
---|
24 | tool-data/microbial_data.loc.sample |
---|
25 | tool-data/phastOdds.loc.sample |
---|
26 | tool-data/quality_scores.loc.sample |
---|
27 | tool-data/regions.loc.sample |
---|
28 | tool-data/sam_fa_indices.loc.sample |
---|
29 | tool-data/srma_index.loc.sample |
---|
30 | tool-data/twobit.loc.sample |
---|
31 | tool-data/shared/ucsc/builds.txt.sample |
---|
32 | " |
---|
33 | |
---|
34 | DIRS=" |
---|
35 | database |
---|
36 | database/files |
---|
37 | database/community_files |
---|
38 | database/tmp |
---|
39 | database/compiled_templates |
---|
40 | database/job_working_directory |
---|
41 | database/import |
---|
42 | database/pbs |
---|
43 | static/genetrack/plots |
---|
44 | tool-data/shared/jars |
---|
45 | " |
---|
46 | |
---|
47 | for sample in $SAMPLES; do |
---|
48 | file=`echo $sample | sed -e 's/\.sample$//'` |
---|
49 | if [ -f $file ]; then |
---|
50 | echo "Not overwriting existing $file" |
---|
51 | else |
---|
52 | echo "Copying $sample to $file" |
---|
53 | cp $sample $file |
---|
54 | fi |
---|
55 | done |
---|
56 | |
---|
57 | for dir in $DIRS; do |
---|
58 | if [ ! -d $dir ]; then |
---|
59 | echo "Creating $dir" |
---|
60 | mkdir $dir |
---|
61 | fi |
---|
62 | done |
---|
63 | |
---|
64 | python ./scripts/fetch_eggs.py |
---|