build_for_toolshed.sh 706 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash

ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BUILD_DIR="$ROOT_DIR/build"
TOOLS_DIR="$ROOT_DIR/tools"
WORKFLOWS_DIR="$ROOT_DIR/workflows"

echo "Builds tool and workflow tarballs under build/."
echo "These can then be uploaded to a Galaxy Tool Shed."

if [ ! -e $BUILD_DIR ]
then
	mkdir $BUILD_DIR
fi

16 17 18 19 20 21
# build all tools under $TOOLS_DIR
for i in $TOOLS_DIR/*
do
	name=`basename $i`
	tar -C $TOOLS_DIR/$name -czf $BUILD_DIR/$name.tar.gz .
done
22

23
tar -C $WORKFLOWS_DIR/core_phylogenomics_pipeline_workflow -czf $BUILD_DIR/core_phylogenomics_pipeline_workflow.tar.gz .
24 25

echo "Successfully built tarballs"
26 27
ls -l $BUILD_DIR/*.tar.gz
echo "Please upload these into a Galaxy Tool Shed"