timed tail for logfiles. Display loglines given a minimum date and/or a maximum date.
c
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

regen.sh 397B

12345678910111213141516171819
  1. #!/bin/bash
  2. cd $(dirname "$0")
  3. echo "Generating $(pwd)/Makefile.am"
  4. progs="$(echo *.c | sed -e 's/\.c / /g' -e 's/\.c$//')"
  5. echo "TESTS = $progs
  6. check_PROGRAMS = $progs
  7. noinst_HEADERS = ttail_check.h
  8. EXTRA_DIST = samples" > Makefile.am
  9. for p in $progs
  10. do
  11. echo "
  12. ${p}_SOURCES = ${p}.c
  13. ${p}_CFLAGS = @CHECK_CFLAGS@
  14. ${p}_LDADD = \$(top_builddir)/src/libttail.a @CHECK_LIBS@
  15. "
  16. done >> Makefile.am