aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher (jlec) <jlec@j-schmitz.net>2009-06-23 15:05:53 +0200
committerJustin Lecher (jlec) <jlec@j-schmitz.net>2009-06-23 15:05:53 +0200
commita86b76c5d82c29352b7448af8881e3de4fa5bdfd (patch)
tree925d63cb304caa3f23d594af230b64a6f213f28f
parentautomatic bump (diff)
downloadsci-a86b76c5d82c29352b7448af8881e3de4fa5bdfd.tar.gz
sci-a86b76c5d82c29352b7448af8881e3de4fa5bdfd.tar.bz2
sci-a86b76c5d82c29352b7448af8881e3de4fa5bdfd.zip
fix of update-monomers-db
-rw-r--r--scripts/update-monomers-db32
1 files changed, 17 insertions, 15 deletions
diff --git a/scripts/update-monomers-db b/scripts/update-monomers-db
index a18836184..e2b651045 100644
--- a/scripts/update-monomers-db
+++ b/scripts/update-monomers-db
@@ -13,21 +13,6 @@ else
fi
-cd /tmp;
-
-wget http://www.ysbl.york.ac.uk/~garib/refmac/data/refmac_dictionary.tar.gz
-
-SHA_NEW=$(sha256sum refmac_dictionary.tar.gz)
-SHA_OLD=$(sed -n -e '/^DIST monomer/p ${REPO_DOC}/../sci-libs/monomer-db/Manifest | \
- tail -n 1 | awk '{print $9}')
-
-if [[ ${SHA_OLD} == ${SHA_NEW} ]]; then
- echo "Nothing to update"
-else
- echo "bumping to monomer-db-${DATE} ..."
- $(bump_package)
-fi
-
bump_package() {
mv refmac_dictionary.tar.gz /home/jlec/science-dist/monomer-db-${DATE}.tar.gz
@@ -43,3 +28,20 @@ bump_package() {
rm /tmp/monomer-db*
}
+
+cd /tmp;
+
+wget http://www.ysbl.york.ac.uk/~garib/refmac/data/refmac_dictionary.tar.gz
+
+SHA_NEW=$(sha256sum refmac_dictionary.tar.gz)
+SHA_OLD=$(sed -n -e '/^DIST monomer/p' ${REPO_DOC}/../sci-libs/monomer-db/Manifest | \
+ tail -n 1 | awk '{print $9}')
+
+if [[ ${SHA_OLD} == ${SHA_NEW} ]]; then
+ echo "Nothing to update"
+else
+ echo "bumping to monomer-db-${DATE} ..."
+ $(bump_package)
+fi
+
+rm -f /tmp/refmac_dictionary.tar.gz