diff options
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/bin/mp | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/build_tools/bin/mp b/build_tools/bin/mp index 97a457e..82f665d 100755 --- a/build_tools/bin/mp +++ b/build_tools/bin/mp @@ -37,8 +37,8 @@ function bump { echo "bumped $pkgname release from $package_pkgrel to $new_pkgrel" . PKGBUILD fi -# TOTALPKG="$pkgname"-"$pkgver"-"$pkgrel"-"$CARCH".pkg.tar.gz -# SRCPKG="$pkgname"-"$pkgver"-"$pkgrel".src.tar.gz + TOTALPKG="$pkgname"-"$pkgver"-"$pkgrel"-"$CARCH".pkg.tar.gz + SRCPKG="$pkgname"-"$pkgver"-"$pkgrel".src.tar.gz } @@ -85,7 +85,7 @@ function update-repo { echo "DOCROOT=$DOCROOT" echo #remove old package from local copy - DELPKG="$_pkgname"-"$pkgver"-*-"$CARCH".pkg.tar.gz + DELPKG="$pkgname"-"$pkgver"-*-"$CARCH".pkg.tar.gz #echo $DOCROOT #echo $DELPKG echo "Removing old packages from $CARCH/$REPO:" @@ -101,7 +101,7 @@ function update-repo { function update-src-pkg { - DELPKG="$_pkgname"-"$pkgver"-*.src.tar.gz + DELPKG="$pkgname"-"$pkgver"-*.src.tar.gz echo "Removing old src pkg" if [ ! -d $PKGHOME/$REPO/$SRCPKG ] then @@ -150,22 +150,17 @@ function dup_check { #MAIN PROGRAM -echo "---------------" find_repo dup_check bump +echo "---------------" makepkg --asroot $cmdline || exit 1 -makepkg -f --holdver --asroot --source update-src-pkg +echo "---------updating database ----------" +update-repo #&& pacman -Sy +echo "----------creating source package---------" +makepkg -f --holdver --asroot --source && update-src-pkg + -for _pkgname in ${pkgname[@]} - do - echo $_pkgname - TOTALPKG="$_pkgname"-"$pkgver"-"$pkgrel"-"$CARCH".pkg.tar.gz - SRCPKG="$_pkgname"-"$pkgver"-"$pkgrel".src.tar.gz - echo "---------updating database ----------" - update-repo - update-src-pkg -done |