31 lines
1.4 KiB
Bash
31 lines
1.4 KiB
Bash
#!/bin/sh
|
|
|
|
# shmake_help.sh - Help message for shmake
|
|
# Author: Emilia Marigold
|
|
|
|
help_message()
|
|
{
|
|
printf "USAGE:\n"
|
|
printf " %s [command] [options]\n\n" "$SCRIPT_NAME"
|
|
printf "COMMANDS:\n"
|
|
printf " help Show this help menu\n"
|
|
printf " init Initialize a new C project structure\n"
|
|
printf " module [name] Create a new module in source_code/MODULE_name/\n"
|
|
printf " library [url] Add a library from URL (git clone or wget/curl)\n"
|
|
printf " link [libs] Add linked libraries (e.g., 'link X11 pthread m')\n"
|
|
printf " sync Auto-generate Build Configs from source files\n\n"
|
|
printf "BUILD MODES (via make BUILD_MODE=...):\n"
|
|
printf " debug Build with debug symbols and debug_only sources\n"
|
|
printf " release Build with optimizations and release_only sources\n"
|
|
printf " test Build with test flags and test_only sources\n"
|
|
printf " (Default: release)\n\n"
|
|
printf "EXAMPLES:\n"
|
|
printf " %s\n" "$SCRIPT_NAME"
|
|
printf " %s init\n" "$SCRIPT_NAME"
|
|
printf " %s module my_feature\n" "$SCRIPT_NAME"
|
|
printf " %s library https://github.com/user/repo.git\n" "$SCRIPT_NAME"
|
|
printf " %s link X11 pthread m\n" "$SCRIPT_NAME"
|
|
printf " %s sync\n" "$SCRIPT_NAME"
|
|
printf " make BUILD_MODE=debug\n"
|
|
}
|