comparison package_macs21_wrapper.sh @ 23:c7646ff9b5c9 draft default tip

planemo upload commit a2f39c10087e77bde5b5db5d04305f72b8eb2af2
author pjbriggs
date Tue, 27 Jun 2023 07:37:07 +0000
parents
children
comparison
equal deleted inserted replaced
22:dfb939015935 23:c7646ff9b5c9
1 #!/bin/sh
2 #
3 # Package MACS 2.1 files into tgz file for upload to
4 # Galaxy toolshed
5 #
6 VERSION=$(grep "^<tool" macs21_wrapper.xml | grep -o -e version=\".*\" | cut -d= -f2 | tr -d \")
7 TGZ=macs21-${VERSION}.tgz
8 if [ -f $TGZ ] ; then
9 echo $TGZ: already exists, please remove >&2
10 exit 1
11 fi
12 tar cvzf $TGZ \
13 README.rst \
14 macs21_wrapper.xml \
15 macs21_wrapper.py \
16 test-data
17 if [ -f $TGZ ] ; then
18 echo Created $TGZ
19 else
20 echo Failed to created $TGZ >&2
21 exit 1
22 fi
23 ##
24 #