aboutsummaryrefslogtreecommitdiff
path: root/boot/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'boot/scripts')
-rwxr-xr-xboot/scripts/embed.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/boot/scripts/embed.sh b/boot/scripts/embed.sh
index baf2e38..98a0c9d 100755
--- a/boot/scripts/embed.sh
+++ b/boot/scripts/embed.sh
@@ -2,7 +2,7 @@
# embed.sh
# a simple script to handle embedding binary file contents into invocations
-# of the CATSKILL_EMBED macro within catboot compiler source files.
+# of the CATBOOT_EMBED macro within catboot compiler source files.
# invoked with `./embed.sh source-1.c source-2.c header.h`
# outputs a file structure within the ./build/ directory matching the source
# directory, with the correct replacements done.
@@ -23,9 +23,9 @@ process_file() {
cp "$source_file" "$output_file"
- local embed_regex='CATSKILL_EMBED\("([^)]+)"\)' # const byte data[] = CATSKILL_EMBED("./file");
- local comment_regex='^\s*//' # // the macro CATSKILL_EMBED does...
- local define_regex='^\s*#define' # #define CATSKILL_EMBED {0}
+ local embed_regex='CATBOOT_EMBED\("([^)]+)"\)' # const byte data[] = CATBOOT_EMBED("./file");
+ local comment_regex='^\s*//' # // the macro CATBOOT_EMBED does...
+ local define_regex='^\s*#define' # #define CATBOOT_EMBED {0}
while IFS= read -r line; do
# skip lines which are just comments mentioning the macro and