OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../xorg-cf-files/link-conf-once.patch
  5. # Copyright (C) 2007 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  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
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. Only link the directory if it's not yet done (otherwise it'll cause shared files).
  18. --jsaw
  19. --- cf/Imake.rules.~1.10.~ 2005-08-19 00:38:58.000000000 +0200
  20. +++ cf/Imake.rules 2005-11-21 02:18:48.241697733 +0100
  21. @@ -1740,8 +1740,10 @@
  22. (cd Concat($(DESTDIR),npath/mdir); \ @@\
  23. tar xf -; exit 0); exit 0); \ @@\
  24. fi; \ @@\
  25. - $(RM) -r rdir; \ @@\
  26. - $(LN) Concat($${RELPATH},npath/mdir) ldir; \ @@\
  27. + if [ ! -h rdir ]; then \ @@\
  28. + $(RM) -r rdir; \ @@\
  29. + $(LN) Concat($${RELPATH},npath/mdir) ldir; \ @@\
  30. + fi; \ @@\
  31. fi
  32. #else
  33. #define LinkConfDirectoryLong(mdir,cdir,rdir,ldir,opath,npath)
  34. @@ -1785,8 +1787,10 @@
  35. if [ -f lfile -a ! -h lfile ]; then \ @@\
  36. cp -p lfile Concat($(DESTDIR),npath/cfile); \ @@\
  37. fi; \ @@\
  38. - $(RM) -r lfile; \ @@\
  39. - $(LN) Concat($${RELPATH},npath/cfile) lfile; \ @@\
  40. + if [ ! -h rdir ]; then \ @@\
  41. + $(RM) -r lfile; \ @@\
  42. + $(LN) Concat($${RELPATH},npath/cfile) lfile; \ @@\
  43. + fi; \ @@\
  44. fi
  45. #else
  46. #define LinkConfFileLong(cfile,lfile,opath,npath)