autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_CONFIG_FILES and chmod


From: William Pursell
Subject: Re: AC_CONFIG_FILES and chmod
Date: Tue, 16 Jun 2009 17:27:39 +0100
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

Lorenzo Bettini wrote:
> On configure.ac, if you need to set the executable flag of a file
> generated by configure, you can do like this (as reported in the manual):
> 
> AC_CONFIG_FILES([Makefile src/Makefile man/Makefile X/Imakefile])
> AC_CONFIG_FILES([autoconf], [chmod +x autoconf])
> 
> Now, since I have many generated files to set as executable, is there a
> quicker way than to have an AC_CONFIG_FILES([...], [chmod +x ...])
> instruction for each file?

You can do:

m4_esyscmd([for f in foo bar;
        do echo "AC_CONFIG_FILES([$f],[chmod +x $f])"; done])

Eric, is that safe?


-- 
William Pursell




reply via email to

[Prev in Thread] Current Thread [Next in Thread]