[Coin-discuss] autoconf executable bit

Lou Hafer lou at cs.sfu.ca
Mon Oct 19 11:50:53 EDT 2009


Matt,

[ Answer copied to Coin-BuildTools as the relevant list. ]

> I have some scripts that I want the user to run (dealing with third-party
> stuff for DIP applications).  The script gets copied from my_script.sh.in to
> my_script.sh to the build dir for the user to run.  The original
> my_script.sh.in is set with the svn:executable bit ON.  But, when autoconf
> makes the copy the executable bit is lost.  How can I fix this?  Currently,
> the user has to chmod+x before it can run the script.

When I had to deal with this for ASL, I used the optional second parameter to 
AC_CONFIG_FILES, as

AC_CONFIG_FILES([compile_MS_ASL],[chmod a+x compile_MS_ASL])

See Sections 4.5 and 4.6 of the autoconf documentation.

						Lou




More information about the Coin-discuss mailing list