Fixed clobber.sh script compatibility with the dash shell (sometimes used on Ubuntu flavors) + fixed find warnings when running it
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3442 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 098b84012fea9433e873105cb027589d0094eae0 Former-commit-id: bbe5a1033605dfc5be87925e265dbf4c476b6cd9
This commit is contained in:
parent
ba6ee842e1
commit
63f45001be
1 changed files with 2 additions and 2 deletions
|
@ -1456,7 +1456,7 @@ MACRO(SD_GENERATE_CLOBBER_SCRIPT)
|
|||
FILE(APPEND "${TGT_SCRIPT}" "# right after a 'svn checkout' command).\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" "\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" "# Check if we are on top of a CMake-enabled SD source tree\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" "if [[ -f CMakeLists.txt && -f credits.xml && -d cmake && -d data && -d src ]] ; then\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" "if [ -f CMakeLists.txt -a -f credits.xml -a -d cmake -a -d data -a -d src ] ; then\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" "\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" " echo \"Cleaning up in-source build tree ...\"\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" " \n")
|
||||
|
@ -1466,7 +1466,7 @@ MACRO(SD_GENERATE_CLOBBER_SCRIPT)
|
|||
FILE(APPEND "${TGT_SCRIPT}" " rm -f uninstall.cmake\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" " rm -f xmlversion_loc.txt install_manifest.txt version.h.txt\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" " rm -fr _CPack_Packages\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" " find . -type d -name \"CMakeFiles\" -exec rm -fr {} \\;\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" " find . -depth -type d -name \"CMakeFiles\" -exec rm -fr {} \\;\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" " find . -type f -name \"cmake_install.cmake\" -delete\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" " find . -type f -name \"Makefile\" -delete\n")
|
||||
FILE(APPEND "${TGT_SCRIPT}" "\n")
|
||||
|
|
Loading…
Reference in a new issue