Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Commit

Permalink
Add comments in CMD scripts, tweak CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Jun 2, 2019
1 parent 5f0323e commit 87f0307
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
9 changes: 9 additions & 0 deletions build-clang-cl.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
@ECHO OFF
::
:: ** CL CLI reminder **
:: optimize size: /Os
:: optimize speed: /Ot
:: compile dynamic: /MD
:: compile static: /MT
::
:: Don't forget setargv_*.obj
::
set t="\"%date% %time%\""
clang-cl src\*.c src\executables\*.c src\etc\*.c src\images\*.c src\documents\*.c src\audio\*.c src\archives\*.c src\vdisk\*.c %1 %2 %3 -DTIMESTAMP=%t% /Zp /o "ff.exe"
6 changes: 6 additions & 0 deletions build-clang.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@ECHO OFF
::
:: CLI reminder
:: -O3
::
:: Don't forget setargv_*.obj
::
set t="\"%date% %time%\""
clang src\*.c src\executables\*.c src\etc\*.c src\images\*.c src\documents\*.c src\audio\*.c src\archives\*.c src\vdisk\*.c %1 %2 %3 -std=c99 -fno-stack-protector -fshort-enums -fstrict-enums -fpack-struct=1 -off.exe -DTIMESTAMP=%t%
8 changes: 4 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ void help() {
printl(
"Simple binary file scanner\n"
" Usage: ff FILE [OPTIONS]\n"
" ff {-v|--version|-h|--help}\n"
" ff {-h|--help|--version|--license}\n"
"\nOPTIONS\n"
" -c Continue on soft symbolic link\n"
" -m If available, print more information\n"
" -s Prepend filename to result\n"
" -h, --help Print this help screen and exit\n"
" -h, --help Print this help screen and exit\n"
" --version Print version screen and exit\n"
" --license Print license screen and exit\n"
);
Expand All @@ -33,7 +33,7 @@ void version() {
" (" TIMESTAMP ")"
#endif
"\n"
"License: Unlicense <http://unlicense.org>\n"
"License: Unlicense <https://unlicense.org>\n"
"Project page: <https://git.dd86k.space/dd86k/ff>\n"
);
}
Expand Down Expand Up @@ -63,7 +63,7 @@ void license() {
"ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n"
"OTHER DEALINGS IN THE SOFTWARE.\n"
"\n"
"For more information, please refer to <http://unlicense.org>\n"
"For more information, please refer to <https://unlicense.org>\n"
);
}

Expand Down

0 comments on commit 87f0307

Please # to comment.