diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-08-31 04:21:43 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-08-31 04:21:43 +0200 |
commit | afc6b5b5977fe77e699af8f02f7c8c4c3df603de (patch) | |
tree | c237e2bf8a41cde6a1ce3c981cacc8a1c282e262 /testing2x | |
parent | 01d2e01a129a4ded9ccba2659250a94cb3fddd36 (diff) | |
download | dbscripts-afc6b5b5977fe77e699af8f02f7c8c4c3df603de.tar.gz dbscripts-afc6b5b5977fe77e699af8f02f7c8c4c3df603de.tar.xz |
Create a "common functions" file for DB scripts
Common functions, such as sourcing makepkg, and locking a repo
Additionally, repo-locking has been unified to prevent multiple
users from corrupting a repo (i.e. db-move run while db-remove
in progress)
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'testing2x')
-rwxr-xr-x | testing2x | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1,11 +1,8 @@ #!/bin/bash -if [ -f "/etc/makepkg.conf" ]; then - . /etc/makepkg.conf -else - echo "/etc/makepkg.conf does not exist!" - exit 1 -fi +. "$(dirname $0)/db-functions" + +source_makepkg case "$0" in *64) @@ -29,7 +26,7 @@ ctrl_c() { } trap ctrl_c 2 -trap cleanup 0 +trap cleanup 0 1 cd "${WORKDIR}" /usr/bin/svn checkout -N ${svnpath} checkout |