aboutsummaryrefslogtreecommitdiffstats
path: root/make-tapreg-dotc
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-10-04 08:10:54 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-10-04 08:10:54 +0000
commit1b2498d074bd96c89829b360c73c817a058c873c (patch)
tree456316785e58d97e2c7a92d4215a0062a84c41c9 /make-tapreg-dotc
parentc0e3180e9be9d16d2cd8c098c1915c8b1c210919 (diff)
Move make-tapreg-dotc to tools/make-tapreg-dotc
svn path=/trunk/; revision=30284
Diffstat (limited to 'make-tapreg-dotc')
-rwxr-xr-xmake-tapreg-dotc47
1 files changed, 0 insertions, 47 deletions
diff --git a/make-tapreg-dotc b/make-tapreg-dotc
deleted file mode 100755
index 686f308011..0000000000
--- a/make-tapreg-dotc
+++ /dev/null
@@ -1,47 +0,0 @@
-#! /bin/sh
-
-#
-# $Id$
-#
-
-#
-# The first argument is the output filename.
-#
-
-outfile="$1"
-shift
-
-#
-# The second argument is the directory in which the source files live.
-#
-srcdir="$1"
-shift
-
-#
-# All subsequent arguments are the files to scan.
-#
-rm -f ${outfile}-tmp
-echo '/* Do not modify this file. */' >${outfile}-tmp
-echo '/* It is created automatically by the Makefile. */' >>${outfile}-tmp
-echo '#include "register.h"' >>${outfile}-tmp
-
-#
-# Build code to call all the tap listener registration routines.
-#
-echo 'void register_all_tap_listeners(void) {' >>${outfile}-tmp
-for f in "$@"
-do
- if [ -f $f ]
- then
- srcfile=$f
- else
- srcfile=$srcdir/$f
- fi
- grep '^register_tap_listener_[a-z_0-9A-Z]* *(' $srcfile 2>/dev/null | grep -v ';' | sed -e 's/(.*//'
-done | while read func; do
- echo " { extern void $func (void);" >>${outfile}-tmp
- echo " $func ();}" >>${outfile}-tmp
-done
-echo '}' >>${outfile}-tmp
-
-mv ${outfile}-tmp ${outfile}