From d506db0988bfe81ac9572bd2cb3694a6ddb11e06 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Fri, 10 Nov 2023 10:45:52 +0100 Subject: [PATCH] Script cleanup --- README.md | 2 -- scrips/init.sh | 32 -------------------------------- src/ulas.c | 1 + 3 files changed, 1 insertion(+), 34 deletions(-) delete mode 100755 scrips/init.sh diff --git a/README.md b/README.md index 7d01470..d9da78d 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,6 @@ make # to compile all targets ## Usage -1) Rename `ulas` to the project's name in all files and folders - ## License This program is distributed under the terms of the MIT License. diff --git a/scrips/init.sh b/scrips/init.sh deleted file mode 100755 index 9163866..0000000 --- a/scrips/init.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -# rename to project specific values -NAME="ulas" -CONST="ULAS" -STRUCT="ulas" -FN="ulas" - -# will be replaced -ULAS_NAME="ulas" -ULAS_STRUCT="ulas" -ULAS_CONST="ULAS" -ULAS_FN="ulas" - -function replace() { - echo "Replacing $1 with $2" - find ./ -type f -name '*.c' -exec sed -i "s/$1/$2/g" {} \; - find ./ -type f -name '*.h' -exec sed -i "s/$1/$2/g" {} \; - find ./ -type f -name '*.md' -exec sed -i "s/$1/$2/g" {} \; - find ./ -type f -name 'makefile' -exec sed -i "s/$1/$2/g" {} \; - find ./ -type f -name '*.sh' -exec sed -i "s/$1/$2/g" {} \; - find ./doc/ -type f -name '*' -exec sed -i "s/$1/$2/g" {} \; -} - -replace $ULAS_NAME $NAME -replace $ULAS_CONST $CONST -replace $ULAS_STRUCT $STRUCT -replace $ULAS_FN $FN - -mv "include/$ULAS_NAME.h" "include/$NAME.h" -mv "src/$ULAS_NAME.c" "src/$NAME.c" -mv "doc/$ULAS_NAME.man" "doc/$NAME.man" diff --git a/src/ulas.c b/src/ulas.c index 236d81f..618e78e 100644 --- a/src/ulas.c +++ b/src/ulas.c @@ -190,6 +190,7 @@ char *ulas_preprocexpand(struct ulas_preproc *pp, const char *raw_line, case ULAS_PPMACRO: // TODO: Implement ULASPANIC("PPMACRO is not implemented!\n"); + break; } -- 2.30.2