build.sh: Fix kernel version sed command

There was an extra useless sed command that was causing the dependency version
to be changed before the actual version replacement sed command was used.
pull/16/head
Jesus Alvarez 12 years ago
parent 744f138807
commit 6bcdb9512f
  1. 13
      build.sh

@ -127,19 +127,14 @@ update_pkgbuilds() {
find . -iname "PKGBUILD" -print | xargs sed -i \ find . -iname "PKGBUILD" -print | xargs sed -i \
"s/$SED_CUR_ZFS_VER/$ZOL_VERSION/g" "s/$SED_CUR_ZFS_VER/$ZOL_VERSION/g"
# Replace the linux version in the top level VERSION
find . -iname "PKGBUILD" -print | xargs sed -i \
"s/_$SED_CUR_LIN_VER/_$LINUX_VERSION/g"
# Replace the linux version in the package dependencies (notice the _).
# This could probably be merged with the sed below, but I am lazy.
find . -iname "PKGBUILD" -print | xargs sed -i \
"s/_$SED_CUR_LIN_VER-$CUR_LINUX_PKGREL/_$LINUX_VERSION-$LINUX_PKGREL/g"
# Replace the linux version # Replace the linux version
find . -iname "PKGBUILD" -print | xargs sed -i \ find . -iname "PKGBUILD" -print | xargs sed -i \
"s/$SED_CUR_LIN_VER-$CUR_LINUX_PKGREL/$LINUX_VERSION-$LINUX_PKGREL/g" "s/$SED_CUR_LIN_VER-$CUR_LINUX_PKGREL/$LINUX_VERSION-$LINUX_PKGREL/g"
# Replace the linux version in the top level VERSION
find . -iname "PKGBUILD" -print | xargs sed -i \
"s/_$SED_CUR_LIN_VER/_$LINUX_VERSION/g"
# Update the sums of the files # Update the sums of the files
for PKG in $PKG_LIST; do for PKG in $PKG_LIST; do
updpkgsums $PKG/PKGBUILD updpkgsums $PKG/PKGBUILD

Loading…
Cancel
Save