#!/bin/sh
-sed 's/GNTX_EXTERN\|extern/static/g'
+# mark extern items as static in C files
+sed 's/GNTX_EXTERN\|extern/static/g' "$@"
#!/bin/sh
-sed 's/GNTX_STATIC\|static/extern/g'
+# mark static items as extern in C files
+sed 's/GNTX_STATIC\|static/extern/g' "$@"
#!/bin/sh
-sed "s/$1//g"
+# delete the text given as the first argument
+sed "s/$1//g" "${@:2}"
#!/bin/sh
-sed 's_\/\/\([^\r\n]\+\)_\/*\1 *\/_g'
+# replace C++ style comments with C style block comments
+sed 's_\/\/\([^\r\n]\+\)_\/*\1 *\/_g' "$@"