Mercurial > repos > galaxyp > openms
comparison update.sh @ 0:ba86fd127f5a draft
Uploaded
author | galaxyp |
---|---|
date | Wed, 19 Dec 2012 00:32:25 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ba86fd127f5a |
---|---|
1 #!/bin/bash | |
2 | |
3 LICENSE_FILE=LICENSE | |
4 # Ensure repository contains license file. | |
5 if [ ! -e "$LICENSE_FILE" ]; | |
6 then | |
7 wget http://www.apache.org/licenses/LICENSE-2.0.txt -O "$LICENSE_FILE" | |
8 fi | |
9 | |
10 # Run repository specific update actions. | |
11 if [ -f update_repo.sh ]; | |
12 then | |
13 ./update_repo.sh | |
14 fi | |
15 | |
16 wget https://raw.github.com/gist/3749747/README_GALAXYP.md -O README_GALAXYP.md | |
17 | |
18 # Create repository README | |
19 if [ ! -e README_REPO.md ]; | |
20 then | |
21 echo "TODO: Document this tool repository." > README_REPO.md | |
22 fi | |
23 cat README_REPO.md README_GALAXYP.md > README.md | |
24 | |
25 | |
26 # If version file exists, update all tools to this version | |
27 VERSION_FILE=version | |
28 if [ -e "$VERSION_FILE" ]; | |
29 then | |
30 VERSION=`cat $VERSION_FILE` | |
31 | |
32 # Replace tool version in each tool XML file ` | |
33 find -iname "*xml" -exec sed -i'' -e '0,/version="\(.\+\)"/s/version="\(.\+\)"/version="'$VERSION'"/1g' {} \; | |
34 | |
35 fi |