On 25/06/08 13:48, Hugh Sasse wrote:
> I've messed this up.  I *do* get the test statement to fail, but
> it carries on anyway, because of the leading - sign.  I've done this:
>
> brains hgs 29 %>  rcsdiff -u !$
> rcsdiff -u Makefile
> ===================================================================
> RCS file: Makefile,v
> retrieving revision 1.1
> diff -u -r1.1 Makefile
> --- /tmp/T083aiz6       Wed Jun 25 12:19:34 2008
> +++ Makefile    Wed Jun 25 12:19:29 2008
> @@ -1742,6 +1742,7 @@
>          -if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
>                  cd $(PODIR); $(MAKE) -f Makefile check VIM=../$(VIMTARGET); \
>          fi
> +       -echo "YIKES: NON-SOLARIS TEST NEXT"
>          -if test $(VIMTARGET) != vim -a ! -e vim; then \
>                  ln -s $(VIMTARGET) vim; \
>          fi
> brains hgs 30 %>  cd ..
> brains hgs 31 %>  gmake check
>
>
> which helped me find:
>
> link.sh: Linked fine with a few libraries removed
> gmake[2]: Leaving directory `/export/home/Scratch/hgs/vim72a/src'
> if test -n "" -a -f po/Makefile; then \
>                  cd po; gmake -f Makefile check VIM=../vim; \
>          fi
> echo "YIKES: NON-SOLARIS TEST NEXT"
> YIKES: NON-SOLARIS TEST NEXT
> if test vim != vim -a ! -e vim; then \
>                  ln -s vim vim; \
>          fi
> /bin/sh: test: argument expected
> gmake[1]: [test] Error 1 (ignored)
> cd testdir; gmake -f Makefile gui VIMPROG=../vim
>
> so I've reproduced this.
>
> I can't find a GNU autoconf macro to test for test, preferring a GNU
> version.  That would usually work.  I found this:

Have you got a bash binary on your system?

If you do, you can use it instead of sh and the error will (I think) go 
away. I suppose it is related with the long discussion we had recently 
in another thread about the syntax colouring of shell scripts (and in 
particular, sh vs. bash vs. ksh vs. POSIX).

(When invoked with the name sh, bash will behave "almost" the way sh 
used to. The clinch is tn the "almost".)


Best regards,
Tony.
-- 
The only really decent thing to do behind a person's back is pat it.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui