aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/lib')
-rw-r--r--trunk/lib/common.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 66c2725..a8cce3f 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -573,7 +573,7 @@ function sync_repo {
function svn_add {
- if [ -d "`dirname $1`/.svn" ] && ! svn_check $1; then
+ if [ -e "$1" ] && [ -d "`dirname $1`/.svn" ] && ! svn_check $1; then
su_svn add $1
fi
@@ -858,7 +858,7 @@ function update_md5_checksum {
folder="$1"
fi
- CWD="`pwd`"
+ cwd="`pwd`"
cd $folder
if [ ! -f CHECKSUMS.md5 ]; then
@@ -877,7 +877,7 @@ function update_md5_checksum {
svn_add CHECKSUMS.md5
svn_add CHECKSUMS.md5.gz
- cd $CWD
+ cd $cwd
}
@@ -922,7 +922,7 @@ function gen_meta {
echo "" >> $LOCATION/$METAFILE
echo "Created metafile for `basename $1`"
- svn_add $LOCATION/$METAFILE
+ svn_add `dirname $1`/`basename $1 .tgz`.meta
}