-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathupdate_extern.sh
27 lines (22 loc) · 1.08 KB
/
update_extern.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
PLANEMO_SCRIPTS_DIR=`dirname $0`
PLANEMO_ROOT="$PLANEMO_SCRIPTS_DIR/.."
EXTERN_DIR="$PLANEMO_ROOT/planemo_ext"
cd "$PLANEMO_ROOT"
TOOL_FACTORY_PATH="$EXTERN_DIR/tool_factory_2"
mkdir -p $TOOL_FACTORY_PATH
for file in 'rgToolFactory2.xml' 'rgToolFactory2.py' 'getlocalrpackages.py' 'LICENSE';
do
wget "https://raw.githubusercontent.com/galaxyproject/tools-iuc/master/tools/tool_factory_2/$file" --output-document "$TOOL_FACTORY_PATH/$file"
done
# Make sure planemo doesn't pick up the tool factory tests. (see github #161)
sed -i -e s/tests/tests_skip/ $TOOL_FACTORY_PATH/rgToolFactory2.xml
CONDA_VERIFY_PATH="$PLANEMO_ROOT/planemo/conda_verify"
mkdir -p $CONDA_VERIFY_PATH
for file in 'LICENSE.txt' 'anaconda_verify/__init__.py' 'anaconda_verify/const.py' 'anaconda_verify/utils.py' 'anaconda_verify/recipe.py';
do
base_file=`basename $file`
destination="$CONDA_VERIFY_PATH/$base_file"
wget "https://raw.githubusercontent.com/ContinuumIO/anaconda-verify/master/$file" --output-document "$destination"
sed -i -e s/anaconda_verify/planemo.conda_verify/ $destination
done