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.

47 lines
1.7 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../cf/link-conf-once.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. Only link the directory if it's not yet done (otherwise it'll cause shared files).
  17. --jsaw
  18. --- cf/Imake.rules.~1.10.~ 2005-08-19 00:38:58.000000000 +0200
  19. +++ cf/Imake.rules 2005-11-21 02:18:48.241697733 +0100
  20. @@ -1740,8 +1740,10 @@
  21. (cd Concat($(DESTDIR),npath/mdir); \ @@\
  22. tar xf -; exit 0); exit 0); \ @@\
  23. fi; \ @@\
  24. - $(RM) -r rdir; \ @@\
  25. - $(LN) Concat($${RELPATH},npath/mdir) ldir; \ @@\
  26. + if [ ! -h rdir ]; then \ @@\
  27. + $(RM) -r rdir; \ @@\
  28. + $(LN) Concat($${RELPATH},npath/mdir) ldir; \ @@\
  29. + fi; \ @@\
  30. fi
  31. #else
  32. #define LinkConfDirectoryLong(mdir,cdir,rdir,ldir,opath,npath)
  33. @@ -1785,8 +1787,10 @@
  34. if [ -f lfile -a ! -h lfile ]; then \ @@\
  35. cp -p lfile Concat($(DESTDIR),npath/cfile); \ @@\
  36. fi; \ @@\
  37. - $(RM) -r lfile; \ @@\
  38. - $(LN) Concat($${RELPATH},npath/cfile) lfile; \ @@\
  39. + if [ ! -h rdir ]; then \ @@\
  40. + $(RM) -r lfile; \ @@\
  41. + $(LN) Concat($${RELPATH},npath/cfile) lfile; \ @@\
  42. + fi; \ @@\
  43. fi
  44. #else
  45. #define LinkConfFileLong(cfile,lfile,opath,npath)