root/galaxy-central/buildbot_setup.sh

リビジョン 2, 3.0 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
1#!/bin/sh
2
3cd `dirname $0`
4
5: ${HOSTTYPE:=`uname -m`}
6
7# link to HYPHY is arch-dependent
8case "$OSTYPE" in
9    linux-gnu)
10        kernel=`uname -r | cut -f1,2 -d.`
11        HYPHY="/galaxy/software/linux$kernel-$HOSTTYPE/hyphy"
12        ;;
13    darwin*)
14        this_minor=`uname -r | awk -F. '{print ($1-4)}'`
15        machine=`machine`
16        for minor in `jot - 3 $this_minor 1`; do
17            HYPHY="/galaxy/software/macosx10.$minor-$machine/hyphy"
18            [ -d "$HYPHY" ] && break
19        done
20        [ ! -d "$HYPHY" ] && unset HYPHY
21        ;;
22    solaris2.10)
23        # For the psu-production builder which is Solaris, but jobs run on a
24        # Linux cluster
25        HYPHY="/galaxy/software/linux2.6-x86_64/hyphy"
26        ;;
27esac
28
29LINKS="
30/galaxy/data/location/add_scores.loc
31/galaxy/data/location/alignseq.loc
32/galaxy/data/annotation_profiler
33/galaxy/data/annotation_profiler/annotation_profiler.loc
34/galaxy/data/annotation_profiler/annotation_profiler_options.xml
35/galaxy/data/annotation_profiler/annotation_profiler_valid_builds.txt
36/galaxy/data/location/bfast_indexes.loc
37/galaxy/data/location/binned_scores.loc
38/galaxy/data/location/blastdb.loc
39/galaxy/data/location/bowtie_indices.loc
40/galaxy/data/location/bowtie_indices_color.loc
41/galaxy/data/location/bwa_index.loc
42/galaxy/data/location/codingSnps.loc
43/galaxy/data/location/encode_datasets.loc
44/galaxy/home/universe/encode_feature_partitions
45/galaxy/data/location/lastz_seqs.loc
46/galaxy/data/location/liftOver.loc
47/galaxy/data/location/maf_index.loc
48/galaxy/data/location/maf_pairwise.loc
49/galaxy/data/location/microbes/microbial_data.loc
50/galaxy/data/location/perm_base_index.loc
51/galaxy/data/location/perm_color_index.loc
52/galaxy/data/location/phastOdds.loc
53/galaxy/data/location/quality_scores.loc
54/galaxy/data/location/regions.loc
55/galaxy/data/location/sam_fa_indices.loc
56/galaxy/data/location/srma_index.loc
57/galaxy/data/taxonomy
58/galaxy/data/location/twobit.loc
59"
60
61SAMPLES="
62datatypes_conf.xml.sample
63universe_wsgi.ini.sample
64tool_data_table_conf.xml.sample
65tool-data/shared/ucsc/builds.txt.sample
66"
67
68DIRS="
69database
70database/files
71database/tmp
72database/compiled_templates
73database/job_working_directory
74database/import
75database/pbs
76"
77
78JARS="/galaxy/software/jars"
79
80for link in $LINKS; do
81    echo "Linking $link"
82    rm -f tool-data/`basename $link`
83    ln -sf $link tool-data
84done
85
86if [ -d "$HYPHY" ]; then
87    echo "Linking $HYPHY"
88    rm -f tool-data/HYPHY
89    ln -sf $HYPHY tool-data/HYPHY
90fi
91
92if [ -d "$JARS" ]; then
93    echo "Linking $JARS"
94    rm -f tool-data/shared/jars
95    ln -sf $JARS tool-data/shared/jars
96fi
97
98for sample in $SAMPLES; do
99    file=`echo $sample | sed -e 's/\.sample$//'`
100    echo "Copying $sample to $file"
101    cp $sample $file
102done
103
104for dir in $DIRS; do
105    if [ ! -d $dir ]; then
106        echo "Creating $dir"
107        mkdir $dir
108    fi
109done
110
111# for wig_to_bigWig
112if [ ! -f "tool-data/shared/ucsc/chrom/hg17.len" -a -f "test-data/wig_to_bigwig_hg17.len" ]; then
113    mkdir -p tool-data/shared/ucsc/chrom
114    cp test-data/wig_to_bigwig_hg17.len tool-data/shared/ucsc/chrom/hg17.len
115fi
116
117python ./scripts/fetch_eggs.py all
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。