Re: AC_CONFIG_FILES and chmod

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

 



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


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux