From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BBB05138247 for ; Sat, 18 Jan 2014 04:34:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AEF16E0CBC; Sat, 18 Jan 2014 04:34:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 24E1BE0CBB for ; Sat, 18 Jan 2014 04:34:04 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3730833F922 for ; Sat, 18 Jan 2014 04:34:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id B28D11872B for ; Sat, 18 Jan 2014 04:34:00 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1389968224.bf6612f410dd0a62f85b61c17f7b0610203ed09c.robbat2@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/kde4-functions.eclass X-VCS-Directories: eclass/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: bf6612f410dd0a62f85b61c17f7b0610203ed09c X-VCS-Branch: master Date: Sat, 18 Jan 2014 04:34:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 06e9d895-0665-4e74-a9f8-3ace3fc029a9 X-Archives-Hash: 4cee51e630565fd8821d9a73618b4b66 commit: bf6612f410dd0a62f85b61c17f7b0610203ed09c Author: Michael Palimaka gentoo org> AuthorDate: Fri Jan 17 14:17:04 2014 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Fri Jan 17 14:17:04 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=bf6612f4 [eclass] Only try to sed CMakeLists.txt if it exists. --- eclass/kde4-functions.eclass | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index 64f26df..830dcf6 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -133,9 +133,10 @@ comment_add_subdirectory() { die "comment_add_subdirectory must be passed the directory name to comment" fi - sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${1}[[:space:]]*)/s/^/#DONOTCOMPILE /" \ - -i CMakeLists.txt || die "failed to comment add_subdirectory(${1})" - + if [[ -a "CMakeLists.txt" ]]; then + sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${1}[[:space:]]*)/s/^/#DONOTCOMPILE /" \ + -i CMakeLists.txt || die "failed to comment add_subdirectory(${1})" + fi } # @FUNCTION: comment_all_add_subdirectory