On 02-05-06 12:45:02 CEST, [EMAIL PROTECTED] wrote:
> Update of /cvsroot/openca/openca-0.9/src/cgi-bin/cgi-ca/cmds
> In directory usw-pr-cvs1:/tmp/cvs-serv22889
> 
> Modified Files:
>       Makefile 
> Log Message:
> 
> Fixed an error while making 'distclean' with AC_CMDS empty.
> 
>       --- madwolf
> 
> 
> Index: Makefile
> ===================================================================
> RCS file: /cvsroot/openca/openca-0.9/src/cgi-bin/cgi-ca/cmds/Makefile,v
> retrieving revision 1.24
> retrieving revision 1.25
> diff -C2 -d -r1.24 -r1.25
> *** Makefile  2 Apr 2002 10:09:25 -0000       1.24
> --- Makefile  6 May 2002 10:44:59 -0000       1.25
> ***************
> *** 114,116 ****
>   
>   distclean::
> !             $(RM) $(AC_CMDS)
> --- 114,118 ----
>   
>   distclean::
> !             @if ! [ -z $(AC_CMDS) ] ; then \
> !                     $(RM) $(AC_CMDS) ; \
> !              fi

if you give the ! as an argument to the [ command, it will get portable.
(it will give !: command not found on some systems.)

and you should make sure that -z gets only one argument.
(otherwise you will get 'test: too many arguments'.)

on which system is $(RM) without any argument a problem, btw?

rj

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
OpenCA-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-devel

Reply via email to