|
Revision 1420:c47708316460, 1.0 kB
(checked in by James Taylor <james@jamestaylor.org>, 4 months ago)
|
Update "setup.sh" to reflect change from datatypes_conf.xml.sample to datatypes_conf.xml.sample
|
| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
|
|---|
| 3 |
SAMPLES=" |
|---|
| 4 |
datatypes_conf.xml.sample |
|---|
| 5 |
reports_wsgi.ini.sample |
|---|
| 6 |
tool_conf.xml.sample |
|---|
| 7 |
universe_wsgi.ini.sample |
|---|
| 8 |
tool-data/alignseq.loc.sample |
|---|
| 9 |
tool-data/binned_scores.loc.sample |
|---|
| 10 |
tool-data/blastdb.loc.sample |
|---|
| 11 |
tool-data/encode_datasets.loc.sample |
|---|
| 12 |
tool-data/liftOver.loc.sample |
|---|
| 13 |
tool-data/maf_index.loc.sample |
|---|
| 14 |
tool-data/maf_pairwise.loc.sample |
|---|
| 15 |
tool-data/microbial_data.loc.sample |
|---|
| 16 |
tool-data/phastOdds.loc.sample |
|---|
| 17 |
tool-data/quality_scores.loc.sample |
|---|
| 18 |
tool-data/regions.loc.sample |
|---|
| 19 |
tool-data/twobit.loc.sample |
|---|
| 20 |
" |
|---|
| 21 |
|
|---|
| 22 |
DIRS=" |
|---|
| 23 |
database |
|---|
| 24 |
database/files |
|---|
| 25 |
database/tmp |
|---|
| 26 |
database/compiled_templates |
|---|
| 27 |
database/job_working_directory |
|---|
| 28 |
database/import |
|---|
| 29 |
database/pbs |
|---|
| 30 |
" |
|---|
| 31 |
|
|---|
| 32 |
for sample in $SAMPLES; do |
|---|
| 33 |
file=`echo $sample | sed -e 's/\.sample$//'` |
|---|
| 34 |
if [ -f $file ]; then |
|---|
| 35 |
echo "Not overwriting existing $file" |
|---|
| 36 |
else |
|---|
| 37 |
echo "Copying $sample to $file" |
|---|
| 38 |
cp $sample $file |
|---|
| 39 |
fi |
|---|
| 40 |
done |
|---|
| 41 |
|
|---|
| 42 |
for dir in $DIRS; do |
|---|
| 43 |
if [ ! -d $dir ]; then |
|---|
| 44 |
echo "Creating $dir" |
|---|
| 45 |
mkdir $dir |
|---|
| 46 |
fi |
|---|
| 47 |
done |
|---|
| 48 |
|
|---|
| 49 |
python ./scripts/fetch_eggs.py |
|---|