X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcreaterepo_c.git;a=blobdiff_plain;f=createrepo_c-bashcompdir.patch;h=6c75b6573eafbd9f643f52fb01f4b3b3a1bffd3e;hp=8c42a13817fd14f38946c2dd00d4992656427e0c;hb=HEAD;hpb=bd7532a440b2c1617b66406b5c0a847df827d610 diff --git a/createrepo_c-bashcompdir.patch b/createrepo_c-bashcompdir.patch deleted file mode 100644 index 8c42a13..0000000 --- a/createrepo_c-bashcompdir.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- /home/users/qboosh/rpm/BUILD/createrepo_c-0.10.0/CMakeLists.txt.orig 2018-05-11 22:44:34.072652081 +0200 -+++ /home/users/qboosh/rpm/BUILD/createrepo_c-0.10.0/CMakeLists.txt 2018-05-12 08:30:25.683823187 +0200 -@@ -98,21 +98,25 @@ - - # Other files - -+if (NOT BASHCOMP_DIR) - pkg_check_modules(BASHCOMP bash-completion) - if (BASHCOMP_FOUND) - execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=completionsdir bash-completion OUTPUT_VARIABLE BASHCOMP_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) -- message("Bash completion directory: ${BASHCOMP_DIR}") -+ELSE (BASHCOMP_FOUND) -+ set(BASHCOMP_DIR "/etc/bash_completion.d") -+endif (BASHCOMP_FOUND) -+endif (NOT BASHCOMP_DIR) -+message("Bash completion directory: ${BASHCOMP_DIR}") -+if (BASHCOMP_DIR STREQUAL "/etc/bash_completion.d") -+ INSTALL(FILES createrepo_c.bash DESTINATION ${BASHCOMP_DIR}) -+else (BASHCOMP_DIR STREQUAL "/etc/bash_completion.d") - INSTALL(FILES createrepo_c.bash DESTINATION ${BASHCOMP_DIR} RENAME createrepo_c) - INSTALL(CODE " - execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink createrepo_c \$ENV{DESTDIR}${BASHCOMP_DIR}/mergerepo_c) - execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink createrepo_c \$ENV{DESTDIR}${BASHCOMP_DIR}/modifyrepo_c) - execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink createrepo_c \$ENV{DESTDIR}${BASHCOMP_DIR}/sqliterepo_c) - ") --ELSE (BASHCOMP_FOUND) -- INSTALL(FILES createrepo_c.bash DESTINATION "/etc/bash_completion.d") -- message("Bash completion directory: /etc/bash_completion.d") --endif (BASHCOMP_FOUND) -- -+endif (BASHCOMP_DIR STREQUAL "/etc/bash_completion.d") - - # Gen manpage -