]> git.mdlowis.com Git - archive/tide-ocaml.git/commitdiff
added descriptions to tools
authorMichael D. Lowis <mike@mdlowis.com>
Sat, 18 Nov 2017 03:39:53 +0000 (22:39 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Sat, 18 Nov 2017 03:39:53 +0000 (22:39 -0500)
tools/E-S
tools/S-E
tools/del
tools/no-c++

index 872235f6c88c559469028d6d9a7e9c30ec1ec2b1..277c5b7fd96c059dc8dabe6299ca6079c18606d0 100755 (executable)
--- a/tools/E-S
+++ b/tools/E-S
@@ -1,2 +1,3 @@
 #!/bin/sh
-sed 's/GNTX_EXTERN\|extern/static/g'
+# mark extern items as static in C files
+sed 's/GNTX_EXTERN\|extern/static/g' "$@"
index 94e333f7bd9be940c4cc26c0a16414d30695ad4b..aa430478d7b763e8d417392c18e3023bd6d1fd61 100755 (executable)
--- a/tools/S-E
+++ b/tools/S-E
@@ -1,2 +1,3 @@
 #!/bin/sh
-sed 's/GNTX_STATIC\|static/extern/g'
+# mark static items as extern in C files
+sed 's/GNTX_STATIC\|static/extern/g' "$@"
index a6ebf9a152fc4cbea4cf9e0f22330bf8fe806e87..72e3d728923798aff3dc42f1cadf768ff512655a 100755 (executable)
--- a/tools/del
+++ b/tools/del
@@ -1,2 +1,3 @@
 #!/bin/sh
-sed "s/$1//g"
+# delete the text given as the first argument
+sed "s/$1//g" "${@:2}"
index 8d1474cb4d470d82b6a1bbbbd239fcb7cc4f0c5d..4cae0b285228d19e76bd8f490627041f8caf0561 100755 (executable)
@@ -1,2 +1,3 @@
 #!/bin/sh
-sed 's_\/\/\([^\r\n]\+\)_\/*\1 *\/_g'
+# replace C++ style comments with C style block comments
+sed 's_\/\/\([^\r\n]\+\)_\/*\1 *\/_g' "$@"