summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2012-05-15 19:25:59 +0200
committerJustin Davis <jrcd83@gmail.com>2012-05-15 19:25:59 +0200
commit04951154523d57bef705c04801447535148edc22 (patch)
tree5aa0c37adc88b3f7d71f87ba66d84206f2bfcd58
parent864892e1796de37cabf12c2c7d9d8b88bc26ac0f (diff)
downloadgenpkg-04951154523d57bef705c04801447535148edc22.tar.gz
genpkg-04951154523d57bef705c04801447535148edc22.tar.xz
Do an svn update in pushpkgs if dir exists.
-rwxr-xr-xpushpkgs16
1 files changed, 9 insertions, 7 deletions
diff --git a/pushpkgs b/pushpkgs
index 1605f4f..d7a99ab 100755
--- a/pushpkgs
+++ b/pushpkgs
@@ -13,7 +13,7 @@ prependid()
}
# Make sure that the package directories are added to the SVN repo.
-syncsvn()
+svnadd()
{
svn add --parents PKGBUILD ../repos
# Make sure that the Id keyword-property is active.
@@ -40,18 +40,20 @@ do
continue
fi
+ cd "$REPODIR" || exit 1
echo "$REPODIR/$pkg"
- if [ -d "$REPODIR/$pkg" ]
+ if [ -d "$pkg" ]
then
- rm -rf "$REPODIR/$pkg/trunk/"*
+ svn update "$pkg"
+ rm -rf "$pkg/trunk/"*
fi
- mkdir -p "$REPODIR/$pkg/"{trunk,repos}
- cp -r -t "$REPODIR/$pkg/trunk" "$pkg"/*
+ mkdir -p "$pkg/"{trunk,repos}
+ cp -r -t "$pkg/trunk" "$PKGDEST/$pkg"/*
- cd "$REPODIR/$pkg/trunk"
+ cd "$pkg/trunk"
prependid
- syncsvn >/dev/null 2>&1
+ svnadd >/dev/null 2>&1
cd "$pkgdir"
done