Created
December 30, 2012 05:15
-
-
Save mnogu/4411114 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
retrieve kde4_cmake_uninstall.cmake.in.diff from https://bugs.kde.org/show_bug.cgi?id=272953 | |
$ cat kde4_cmake_uninstall.cmake.in.diff | |
--- kde4_cmake_uninstall.cmake.in.orig 2011-04-01 22:55:50.000000000 +0900 | |
+++ kde4_cmake_uninstall.cmake.in 2011-05-10 23:15:14.437055087 +0900 | |
@@ -5,18 +5,18 @@ | |
FILE(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files) | |
STRING(REGEX REPLACE "\n" ";" files "${files}") | |
FOREACH(file ${files}) | |
- MESSAGE(STATUS "Uninstalling \"${file}\"") | |
- IF(EXISTS "${file}") | |
+ MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") | |
+ IF(EXISTS "$ENV{DESTDIR}${file}") | |
EXEC_PROGRAM( | |
- "@CMAKE_COMMAND@" ARGS "-E remove \"${file}\"" | |
+ "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" | |
OUTPUT_VARIABLE rm_out | |
RETURN_VALUE rm_retval | |
) | |
IF("${rm_retval}" STREQUAL 0) | |
ELSE("${rm_retval}" STREQUAL 0) | |
- MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"") | |
+ MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") | |
ENDIF("${rm_retval}" STREQUAL 0) | |
- ELSE(EXISTS "${file}") | |
- MESSAGE(STATUS "File \"${file}\" does not exist.") | |
- ENDIF(EXISTS "${file}") | |
+ ELSE(EXISTS "$ENV{DESTDIR}${file}") | |
+ MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") | |
+ ENDIF(EXISTS "$ENV{DESTDIR}${file}") | |
ENDFOREACH(file) | |
$ cd /usr/share/kde4/apps/cmake/modules/ | |
$ sudo patch -p0 < ~/Documents/kde4_cmake_uninstall.cmake.in.diff | |
patching file kde4_cmake_uninstall.cmake.in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment