Script cleanup
authorLukas Krickl <lukas@krickl.dev>
Fri, 10 Nov 2023 09:45:52 +0000 (10:45 +0100)
committerLukas Krickl <lukas@krickl.dev>
Fri, 10 Nov 2023 09:45:52 +0000 (10:45 +0100)
README.md
scrips/init.sh [deleted file]
src/ulas.c

index 7d014709a815172cbabf9a260c487cfe58175d0c..d9da78dc3143847c4283e405ca5d9db56d026634 100644 (file)
--- 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 (executable)
index 9163866..0000000
+++ /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" 
index 236d81f0781c8edbded15b6803d78cf62d4a9f0d..618e78e2bf3aa91594d0d21906d2884ebd5808d0 100644 (file)
@@ -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;
       }