Commits

Michał Górny committed 79b8439

Move executables to python-scriptroot.

As suggested by chutzpah, since they're not supposed to be accessed
directly.

  • Participants
  • Parent commits 9bdd65f
  • Branches python-exec2

Comments (0)

Files changed (2)

 AM_DISTCHECK_CONFIGURE_FLAGS = \
 	--with-python-impls='python3.1 python3.2 python2.6 python2.7'
 
-bin_PROGRAMS = python-exec2-c
-bin_SCRIPTS = python-exec2
+scriptroot_PROGRAMS = python-exec2-c
+scriptroot_SCRIPTS = python-exec2
 
 check_PROGRAMS = tests/print-bufsiz tests/python-exec2-c
 check_SCRIPTS = tests/python-exec
 
 python-exec2: src/python-exec.in
 	rm -f $@ $@.tmp
-	@SED@ -e "s|[@]bindir@|${bindir}|" \
-		-e "s|[@]PYTHON_SCRIPTROOT@|${PYTHON_SCRIPTROOT}|" \
+	@SED@ -e "s|[@]bindir@|${scriptrootdir}|" \
+		-e "s|[@]PYTHON_SCRIPTROOT@|${scriptrootdir}|" \
 		-e "s|[@]exeext@|${EXEEXT}|g" $< > $@.tmp
 	chmod a-w,a+x $@.tmp
 	mv $@.tmp $@

File configure.ac

 	])
 AC_DEFINE_UNQUOTED([PYTHON_SCRIPTROOT], ["$with_python_scriptroot"],
 	[Set to the root directory where wrapped Python scripts are stored])
-AC_SUBST([PYTHON_SCRIPTROOT], [$with_python_scriptroot])
+AC_SUBST([scriptrootdir], [$with_python_scriptroot])
 
 AM_INIT_AUTOMAKE([1.11 foreign dist-bzip2 subdir-objects parallel-tests])