charmxi cleanup: rename atomic construct to serial internally
[charm.git] / src / arch / conv-mach-fix.sh
bloba36ff8a485561e78a15f7d37537dbe92513bd3e6
1 #!/bin/sh
2 # A small script for removing unneeded symbols
3 # from all the conv-mach files. You'll need to edit
4 # the script to remove the symbols you want to remove.
6 for f in `echo */conv-mach.h`
7 do
8 echo "Fixing $f..."
9 cp $f $f.bak
10 cat $f.bak \
11 | grep -v 'CMK_USE_HP_MAIN_FIX[ ]*0' \
12 | grep -v 'CMK_DONT_USE_HP_MAIN_FIX' \
13 > tmp
14 mv tmp $f
15 done