diff options
author | 2016-07-21 12:57:44 +0200 | |
---|---|---|
committer | 2016-07-21 12:57:44 +0200 | |
commit | 10a17308277ebe4421ec780a25f8fee8186893b5 (patch) | |
tree | aa65547ccc8a21777ef44db5610ed18af25ddc61 | |
parent | 372bfb987532df1733c503caf9be0c02bf04d207 (diff) | |
download | ktown-10a17308277ebe4421ec780a25f8fee8186893b5.tar.gz ktown-10a17308277ebe4421ec780a25f8fee8186893b5.tar.xz |
kde/KDE.SlackBuild: take better care of packages whose names partially overlap.
-rwxr-xr-x | kde/KDE.SlackBuild | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kde/KDE.SlackBuild b/kde/KDE.SlackBuild index 4dd6666..fa9e1c3 100755 --- a/kde/KDE.SlackBuild +++ b/kde/KDE.SlackBuild @@ -244,7 +244,7 @@ build_mod_pkg () { rm -rf $PKG mkdir -p $PKG ( for PKGNAME in $(cat $kde_module |grep -v "^$" |grep -v "^#") ; do - if grep -wq "^$PKGNAME" ${CWD}/package-blacklist ; then + if grep -wq "^${PKGNAME}$" ${CWD}/package-blacklist ; then continue fi # Find the full source filename - yeah ugly, but I had two goals: @@ -265,7 +265,7 @@ build_mod_pkg () { # Reset $PKGARCH to its initial value: PKGARCH=$ARCH # Perhaps $PKGARCH should be something different: - if grep -wq "^$PKGNAME" ${CWD}/noarch ; then + if grep -wq "^${PKGNAME}$" ${CWD}/noarch ; then PKGARCH=noarch fi cd $SLACK_KDE_BUILD_DIR/${kde_module} @@ -284,7 +284,7 @@ build_mod_pkg () { echo "Building from source ${kde_src}" echo fi - if grep -wq "^$PKGNAME" ${CWD}/modularize ; then + if grep -wq "^${PKGNAME}$" ${CWD}/modularize ; then # Set $PKG to a private dir for the modular package build: PKG=$SLACK_KDE_BUILD_DIR/${kde_module}/package-$PKGNAME rm -rf $PKG @@ -310,7 +310,7 @@ build_mod_pkg () { . $CWD/pre-install/${PKGNAME}.pre-install fi - if ! grep -wq "^$PKGNAME$" ${CWD}/nomake ; then + if ! grep -wq "^${PKGNAME}$" ${CWD}/nomake ; then # Run cmake, using custom cmake script if needed: if [ -r $CWD/cmake/${PKGNAME} ]; then . $CWD/cmake/${PKGNAME} @@ -419,7 +419,7 @@ build_mod_pkg () { echo echo "Searching for packages in ${kde_module} that were not built modular:" cat $CWD/modules/${kde_module} | grep -v "^#" | grep -v -w "^" | while read checkpackage ; do - if ! grep -wq "^$checkpackage" ${CWD}/modularize ; then + if ! grep -wq "^${checkpackage}$" ${CWD}/modularize ; then # Non-modular package found, so we'll have to build the package below. # It might already have been built once, but in that case it is likely # that more things have been added to the package directory since then. |