mirror of
https://github.com/darlinghq/darling-shell_cmds.git
synced 2024-11-23 03:29:46 +00:00
Create Script To Generate sh Files
This commit is contained in:
parent
8700997f3f
commit
32dc3daee5
20
darling/scripts/gen_sh_files.sh
Executable file
20
darling/scripts/gen_sh_files.sh
Executable file
@ -0,0 +1,20 @@
|
||||
SRCROOT="$(cd ../.. && pwd)"
|
||||
BUILT_PRODUCTS_DIR="$SRCROOT/gen/sh"
|
||||
DERIVED_FILE_DIR="$SRCROOT/gen/tmp"
|
||||
|
||||
mkdir -p $BUILT_PRODUCTS_DIR
|
||||
|
||||
# mkbuiltins
|
||||
cd ${BUILT_PRODUCTS_DIR} && sh ${SRCROOT}/sh/mkbuiltins ${SRCROOT}/sh
|
||||
|
||||
# mknodes
|
||||
mkdir -p ${DERIVED_FILE_DIR}
|
||||
env -i xcrun -sdk macosx cc ${SRCROOT}/sh/mknodes.c -o ${DERIVED_FILE_DIR}/mknodes
|
||||
cd ${BUILT_PRODUCTS_DIR} && ${DERIVED_FILE_DIR}/mknodes ${SRCROOT}/sh/nodetypes ${SRCROOT}/sh/nodes.c.pat
|
||||
|
||||
# mksyntax
|
||||
env -i xcrun -sdk macosx cc ${SRCROOT}/sh/mksyntax.c -o ${DERIVED_FILE_DIR}/mksyntax
|
||||
cd ${BUILT_PRODUCTS_DIR} && ${DERIVED_FILE_DIR}/mksyntax
|
||||
|
||||
# mktokens
|
||||
cd ${BUILT_PRODUCTS_DIR} && sh ${SRCROOT}/sh/mktokens
|
Loading…
Reference in New Issue
Block a user