diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-05-15 19:25:59 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-05-15 19:25:59 +0200 |
commit | 04951154523d57bef705c04801447535148edc22 (patch) | |
tree | 5aa0c37adc88b3f7d71f87ba66d84206f2bfcd58 | |
parent | 864892e1796de37cabf12c2c7d9d8b88bc26ac0f (diff) | |
download | genpkg-04951154523d57bef705c04801447535148edc22.tar.gz genpkg-04951154523d57bef705c04801447535148edc22.tar.xz |
Do an svn update in pushpkgs if dir exists.
-rwxr-xr-x | pushpkgs | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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 |