From: <rla...@us...> - 2004-02-23 20:00:35
|
Update of /cvsroot/plplot/plplot/cf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14987 Modified Files: Tag: CFDIR acinclude.m4 test.ac Log Message: Created macro PL_CONFIG_FILE_EXE in cf/acinclude.m4. This macro is called in ct/test.ac to make the files test_f77.sh, test_python.sh and plplot-test.sh executables after AC_SUBSTitution. The previous method of using a second argument in aC_CONFIG_FILES to do the chmod +x was not working properly, because the chmod command was being executed for every file in the list. This was harmless, but caused an annoying waring message during configure. Index: acinclude.m4 =================================================================== RCS file: /cvsroot/plplot/plplot/cf/Attic/acinclude.m4,v retrieving revision 1.1.2.12 retrieving revision 1.1.2.13 diff -u -d -r1.1.2.12 -r1.1.2.13 --- acinclude.m4 21 Feb 2004 16:29:12 -0000 1.1.2.12 +++ acinclude.m4 23 Feb 2004 18:32:38 -0000 1.1.2.13 @@ -365,3 +365,11 @@ $1=`$OCTAVE -q -f 2>&1 <<EOF printf(octave_config_info("$2")); EOF`]) +dnl ------------------------------------------------------------------------ +dnl PL_CONFIG_FILE_EXE(file) +dnl +dnl Add file to CONFIG_FILES list and make it executable +dnl +AC_DEFUN([PL_CONFIG_FILE_EXE],[ + AC_CONFIG_FILES([$1], [chmod +x $1]) +]) Index: test.ac =================================================================== RCS file: /cvsroot/plplot/plplot/cf/Attic/test.ac,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -d -r1.1.2.3 -r1.1.2.4 --- test.ac 22 Feb 2004 19:57:24 -0000 1.1.2.3 +++ test.ac 23 Feb 2004 18:32:38 -0000 1.1.2.4 @@ -35,10 +35,8 @@ AC_SUBST(EXAMPLES_DIRECTORIES) -AC_CONFIG_FILES([ - test/Makefile - test/plplot-test.sh - test/test_f77.sh - test/test_python.sh - ], - [chmod +x test/plplot-test.sh test/test_f77.sh test/test_python.sh]) +AC_CONFIG_FILES(test/Makefile) + +PL_CONFIG_FILE_EXE(test/plplot-test.sh) +PL_CONFIG_FILE_EXE(test/test_f77.sh) +PL_CONFIG_FILE_EXE(test/test_python.sh) |