From b0356a9b4b9e58c839c2a06b310572458541c81f Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Fri, 17 Nov 2017 22:39:53 -0500 Subject: [PATCH] added descriptions to tools --- tools/E-S | 3 ++- tools/S-E | 3 ++- tools/del | 3 ++- tools/no-c++ | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/E-S b/tools/E-S index 872235f..277c5b7 100755 --- 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' "$@" diff --git a/tools/S-E b/tools/S-E index 94e333f..aa43047 100755 --- 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' "$@" diff --git a/tools/del b/tools/del index a6ebf9a..72e3d72 100755 --- 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}" diff --git a/tools/no-c++ b/tools/no-c++ index 8d1474c..4cae0b2 100755 --- a/tools/no-c++ +++ b/tools/no-c++ @@ -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' "$@" -- 2.52.0