Thierry Vignaud <[EMAIL PROTECTED]> writes:

> oops, i sent the wrong patch:

here's two updated patches again:

in order to let coreutils build smoothly, it's better to only check
the last character of program name rather than the full name:
--- ./src/test.c.tv	2004-01-07 12:36:21.000000000 +0100
+++ ./src/test.c	2004-01-07 13:06:06.000000000 +0100
@@ -1091,7 +1091,7 @@
 
   argv = margv;
 
-  if (LBRACKET)
+  if (margv[0][strlen(margv[0])-1] == '[')
     {
       /* Recognize --help or --version, but only when invoked in the
 	 "[" form, and when the last argument is not "]".  POSIX
the following patch:
- fix spurious error message when one do make install again (rm part)
- make coreutils use mapped name everywhere needed (because posix said
  that test and [ behavior is different regarding --help and
  --version)
--- ./man/Makefile.tv	2004-01-07 13:50:31.000000000 +0100
+++ ./man/Makefile	2004-01-07 13:50:27.000000000 +0100
@@ -485,11 +485,12 @@
 .x.1:
 	@rm -f $@
 	@echo "Updating man page $@";		\
+	rm -fr $t; \
 	mkdir $t;				\
-	(cd $t && $(LN_S) ../../src/$(mapped_name)$(EXEEXT) $*$(EXEEXT)); \
+	(cd $t && $(LN_S) ../../src/$(mapped_name)$(EXEEXT) $(mapped_name)$(EXEEXT)); \
 	$(HELP2MAN)				\
 	    --include=$(srcdir)/$*.x		\
-	    --output=$@ $t/$*$(EXEEXT)
+	    --output=$@ $t/$(mapped_name)$(EXEEXT)
 	@chmod a-w $@
 	@rm -rf $t
 
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to