aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib/common.sh
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 17:22:06 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 17:22:06 +0000
commitf8fd450c9b9561c29bfdba24bb87a9cc55fc889e (patch)
treefeea5ca231dc9f2a571a67591b893bb5388378f7 /trunk/lib/common.sh
parent990e65cdfd4539143968b4e85d7badd2ef42c2ec (diff)
downloadsimplepkg-f8fd450c9b9561c29bfdba24bb87a9cc55fc889e.tar.gz
simplepkg-f8fd450c9b9561c29bfdba24bb87a9cc55fc889e.tar.bz2
cleanup
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@601 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r--trunk/lib/common.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 83eec65..a49257a 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -513,7 +513,11 @@ function svn_check {
folder="`dirname $1`"
file="`basename $1`"
- if [ -d "$folder/.svn" ]; then
+ if [ -d "$folder/$file/.svn" ]; then
+
+ return 0
+
+ elif [ -d "$folder/.svn" ]; then
(
cd $folder
@@ -838,7 +842,7 @@ function gen_packages_txt {
if [ "$1" == "." ]; then
echo "Created new PACKAGES.TXT and PACKAGES.TXT.gz"
else
- echo "Created new $1/PACKAGES.TXT and $1/PACKAGES.TXT.gz"
+ echo "Created new $1/PACKAGES.TXT and $1/PACKAGES.TXT.gz for $folder"
fi
fi
@@ -871,7 +875,7 @@ function gen_md5_checksums {
if [ "$1" == "." ]; then
echo "Created new CHECKSUMS.md5 and CHECKSUMS.md5.gz"
else
- echo "Created new $1/CHECKSUMS.md5 and $1/CHECKSUMS.md5.gz"
+ echo "Created new $1/CHECKSUMS.md5 and $1/CHECKSUMS.md5.gz for $folder"
fi
fi
@@ -905,7 +909,7 @@ function update_md5_checksum {
cat CHECKSUMS.md5 | gzip -9 -c - > CHECKSUMS.md5.gz
- echo "Updated CHECKSUMS.md5"
+ echo "Updated CHECKSUMS.md5 at $folder"
svn_add CHECKSUMS.md5
svn_add CHECKSUMS.md5.gz