1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../ncurses/install-no-rm.patch.disabled
5 # Copyright (C) 2006 The OpenSDE Project
6 # Copyright (C) 2004 - 2006 The T2 SDE Project
8 # More information can be found in the files COPYING and README.
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
16 # --- SDE-COPYRIGHT-NOTE-END ---
18 One must not rm a library - especially not when the system - e.g. bash -
21 - Rene Rebe <rene@exactcode.de>
23 --- ./mk-1st.awk.orig 2004-01-10 20:48:43.000000000 +0000
24 +++ ./mk-1st.awk 2005-06-12 12:05:30.000000000 +0000
27 function symlink(src,dst) {
29 - printf "rm -f %s; ", dst
30 - printf "$(LN_S) %s %s; ", src, dst
31 + printf "$(LN_S) -f %s %s; ", src, dst
34 function rmlink(directory, dst) {
36 src_name = sprintf("../lib/%s", end_name);
37 dst_name = sprintf("$(DESTDIR)$(libdir)/%s", end_name);
38 printf "\t@echo installing %s as %s\n", src_name, dst_name
39 - printf "\t-@rm -f %s\n", dst_name
40 printf "\t$(INSTALL_LIB) %s %s\n", src_name, dst_name
42 sharedlinks("$(DESTDIR)$(libdir)")
45 ovr_name = sprintf("libcurses%s", suffix)
46 printf "\t@echo linking %s to %s\n", end_name, ovr_name
47 - printf "\tcd $(DESTDIR)$(libdir) && (rm -f %s; $(LN_S) %s %s; )\n", ovr_name, end_name, ovr_name
48 + printf "\tcd $(DESTDIR)$(libdir) && ($(LN_S) -f %s %s; )\n", ovr_name, end_name, ovr_name
51 if ( ldconfig != "" ) {