Le 12 avr. 2004, � 19:46, Martin Costabel a �crit :
jfm wrote:Yes, you have to put an * after the / so that it copies. I tossed on that yesterday when I wanted to copy a directory to another.On Apr 12, 2004, at 6:01 PM, Mich�le Garoche wrote:[][]cp -RL DOC/HTML/SGMLSpm/ DOC/HTML/sgmlspl/ /sw/src/root-sgmls-pm-1.03ii-1/sw/share/doc/sgmls-pm
chmod a+x,a+r /sw/src/root-sgmls-pm-1.03ii-1/sw/share/doc/sgmls-pm/SGMLSpm /sw/src/root-sgmls-pm-1.03ii-1/sw/share/doc/sgmls-pm/sgmlspl
chmod: /sw/src/root-sgmls-pm-1.03ii-1/sw/share/doc/sgmls-pm/SGMLSpm: No such file or directory
chmod: /sw/src/root-sgmls-pm-1.03ii-1/sw/share/doc/sgmls-pm/sgmlspl:
You're right : there is in the info file a 'cd DOC; make -t html' _ in order to ensure
the above "make[1]: Nothing to be done for `html'." (touching the relevant files
didn't seem to suffice), and which creates an (empty) file DOC/html _ thus
overwriting on HFS+ the dir DOC/HTML.
I'll fix it real soon.
Hmm, this is not what I am seeing. The directories are there, but they don't get copied, because /bin/cp has a trailing slash bug:
"/bin/cp -RL a b" copies the directory a and its contents into the directory b. This is as advertised.
"/bin/cp -RL a/ b" does nothing. This is at least a "surprising feature".
I can obviously install fileutils, but it should work also without it, should not it. Or a dependency on fileutils?
Fink's cp does not have this problem: "/sw/bin/cp -RL a/ b" does the same thing as without trailing slash.
Bad Apple :-(
Indeed, when I install the fileutils package, sgmls-pm builds without problem.
Mich�le <http://micmacfr.homeunix.org>
PGP.sig
Description: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=
