Added this little script for removing, en masse, symbols from
authorOrion Lawlor <olawlor@acm.org>
Fri, 21 Mar 2003 22:21:50 +0000 (22:21 +0000)
committerOrion Lawlor <olawlor@acm.org>
Fri, 21 Mar 2003 22:21:50 +0000 (22:21 +0000)
the config files.  You'd modify and then run this script whenever
you move a configuration item from being hardcoded in the config
files to being automatically determined.

src/arch/conv-mach-fix.sh [new file with mode: 0755]

diff --git a/src/arch/conv-mach-fix.sh b/src/arch/conv-mach-fix.sh
new file mode 100755 (executable)
index 0000000..a36ff8a
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+# A small script for removing unneeded symbols
+# from all the conv-mach files.  You'll need to edit
+# the script to remove the symbols you want to remove.
+
+for f in `echo */conv-mach.h`
+do
+       echo "Fixing $f..."
+       cp $f $f.bak
+       cat $f.bak \
+       | grep -v 'CMK_USE_HP_MAIN_FIX[ ]*0' \
+       | grep -v 'CMK_DONT_USE_HP_MAIN_FIX' \
+       > tmp
+       mv tmp $f
+done