Errors in -start targets for stage2 and later

Matt Kraai kraai@alumni.cmu.edu
Mon Jul 7 07:31:00 GMT 2003


Howdy,

The -start targets for stage2 and later have problems that are
caused by unescaped dollar signs:

 subdirs="ada cp f java objc"; for dir in /home/kraai/dev/gcc/gccubdirs; \
  do \
    if [ -d stage2/$dir ] ; then true ; else mkdir stage2/$dir ; fi ; \
  done
 mkdir: cannot create directory `stage2//home/kraai/dev/gcc/gccubdirs': No such file or directory
 make[2]: [stage2-start] Error 1 (ignored)

Why were they changed from

 for dir in $(SUBDIRS);

to

 subdirs="$(SUBDIRS)"; for dir in $subdirs;

and why was this not done for stage1-start?

-- 
Matt Kraai          kraai@alumni.cmu.edu          Debian GNU/Linux



More information about the Gcc mailing list