AC_PREREQ(2.57)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
#AC_WITH_LTDL # not needed ?
-AM_INIT_AUTOMAKE(ltt-control,0.78-04122009)
+AM_INIT_AUTOMAKE(ltt-control,0.79-01022010)
AM_CONFIG_HEADER(config.h)
AM_PROG_LIBTOOL
AM_CFLAGS = -DPACKAGE_DATA_DIR=\""$(datadir)"\" -DPACKAGE_BIN_DIR=\""$(bindir)"\"
+# Ensure scripts are portable by depending only on /bin/sh
+SH = /bin/sh
+
bin_PROGRAMS = lttctl
bin_SCRIPTS = ltt-armall ltt-disarmall \
ltt-armtap ltt-disarmtap
ltt-armall: ltt-armall.sh
rm -f ltt-armall
- echo "#!"$(BASH) > ltt-armall
+ echo "#!"$(SH) > ltt-armall
cat $(srcdir)/ltt-armall.sh >> ltt-armall
chmod ugo+x ltt-armall
ltt-disarmall: ltt-disarmall.sh
rm -f ltt-disarmall
- echo "#!"$(BASH) > ltt-disarmall
+ echo "#!"$(SH) > ltt-disarmall
cat $(srcdir)/ltt-disarmall.sh >> ltt-disarmall
chmod ugo+x ltt-disarmall
ltt-armtap: ltt-armtap.sh
rm -f ltt-armtap
- echo "#!"$(BASH) > ltt-armtap
+ echo "#!"$(SH) > ltt-armtap
cat $(srcdir)/ltt-armtap.sh >> ltt-armtap
chmod ugo+x ltt-armtap
ltt-disarmtap: ltt-disarmtap.sh
rm -f ltt-disarmtap
- echo "#!"$(BASH) > ltt-disarmtap
+ echo "#!"$(SH) > ltt-disarmtap
cat $(srcdir)/ltt-disarmtap.sh >> ltt-disarmtap
chmod ugo+x ltt-disarmtap
TESTS="${TESTS} -path '*/net/*_extended' -prune -o"
fi
-(eval "find '${MARKERSROOT}' ${TESTS} -name metadata -prune -o -name enable -print0") | while read -r -d $'\0' marker; do
+(eval "find '${MARKERSROOT}' ${TESTS} -name metadata -prune -o -name enable -print") | while read -r marker; do
if [ ! ${QUIET} ]; then
echo "Connecting ${marker%/enable}"
fi
done
shift $((${OPTIND} - 1))
-(eval "find '${MARKERSROOT}' -name metadata -prune -o -name enable -print0") | while read -r -d $'\0' marker; do
+(eval "find '${MARKERSROOT}' -name metadata -prune -o -name enable -print") | while read -r marker; do
grep "^1$" "${marker}" -q
if [ $? -ne 0 ]; then
continue