[GRASS-dev] some backports to 6.3.0-CVS branch

Hamish hamish_nospam at yahoo.com
Fri Oct 26 21:26:08 EDT 2007


Glynn wrote:
> There is a check, hence the 'if [ "" != "" ] ...' part. But the shell
> seems to be complaining about being unable to parse the command even
> though it isn't going to execute it.
> 
> The command in question is the last one for the "clean" target in
> Rules.make:
> 
> clean:
> 	-rm -rf $(OBJDIR) $(EXTRA_CLEAN_DIRS)
> 	-rm -f $(EXTRA_CLEAN_FILES) *.tmp.html
> 	-if [ "$(CLEAN_SUBDIRS)" != "" ] ; then \
> 		for dir in $(CLEAN_SUBDIRS) ; do \
> 			$(MAKE) -C $$dir clean ; \
> 		done ; \
> 	fi


how about
- 	-if [ "$(CLEAN_SUBDIRS)" != "" ] ; then \
+ 	-if [ -n "$(CLEAN_SUBDIRS)" ] ; then \


What OS & make version are you running Benjamin?


Hamish


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the grass-dev mailing list