index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Alastair Hughes <hobbitalastair@gmail.com> | 2017-08-12 09:15:33 +1200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2017-09-14 13:03:44 +1000 |
commit | 62bfba53dbb33d12f3a4beaf9044a04b40c6b537 (patch) | |
tree | 0f0179a8c8abe4d7709771c36820c5b85b9e08c8 /scripts/makepkg.sh.in | |
parent | 2ddbc6964b31f65678ed8e7c2cf1e80f0a7d4a0f (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 4 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index a466e4f1..54998fdb 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -195,12 +195,12 @@ update_pkgver() { if [[ -n $newpkgver && $newpkgver != "$pkgver" ]]; then if [[ -f $BUILDFILE && -w $BUILDFILE ]]; then - if ! @SEDINPLACE@ "s:^pkgver=[^ ]*:pkgver=$newpkgver:" "$BUILDFILE"; then + if ! @SEDPATH@ @SEDINPLACEFLAGS@ "s:^pkgver=[^ ]*:pkgver=$newpkgver:" "$BUILDFILE"; then error "$(gettext "Failed to update %s from %s to %s")" \ "pkgver" "$pkgver" "$newpkgver" exit 1 fi - @SEDINPLACE@ "s:^pkgrel=[^ ]*:pkgrel=1:" "$BUILDFILE" + @SEDPATH@ @SEDINPLACEFLAGS@ "s:^pkgrel=[^ ]*:pkgrel=1:" "$BUILDFILE" source_safe "$BUILDFILE" local fullver=$(get_full_version) msg "$(gettext "Updated version: %s")" "$pkgbase $fullver" |