diff options
| author | Mel <mel@rnrd.eu> | 2026-01-27 04:15:32 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-01-27 04:15:32 +0100 |
| commit | 129e5669015a7ffd78d0f665f46cc434bcf126d2 (patch) | |
| tree | 97c203070590cf27bba2209c1998bcc546260753 /boot/scripts/embed.sh | |
| parent | 38bc2d06fff322a99ba6ba46df69bbd2b40c6173 (diff) | |
| download | catskill-129e5669015a7ffd78d0f665f46cc434bcf126d2.tar.zst catskill-129e5669015a7ffd78d0f665f46cc434bcf126d2.zip | |
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/scripts/embed.sh')
| -rwxr-xr-x | boot/scripts/embed.sh | 8 |
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 |
