GNU Pascal compiler wrapper
Description
โ ๏ธ This project is no longer maintained.
Tool to simplify access to GNU Pascal compiler.
Requirenments
Last version of GNU Pascal compiler
Syntax
gnupas [options] pathToFile pathToOutFile [-- [compilerOptions]]
Options
-h
|--help
|/h
|/help
- writes help and exits-v
|--version
|/v
|/version
- writes version and exits-p
|--path
|/p
|/path
- specifies path to GNU Pascal compiler-e
|--exec
|/e
|/exec
- executes compiled program immediately!
- suppress prompts to change PATH variable
Return codes
0
- success1
- none file passed or it is not found2
- GNU Pascal compiler is not found3
- you have to restart your shell to apply changes to PATH
If compilation failed then compiler error status is returned. If -e|--exec|/e|/exec option passed then program execution error status is returned.
Notes
Optimization, pointer arithmetic and GNU Pascal extensions are enabled by default. It means that -O3, --pointer-arithmetic, --gnu-pascal compiler options are passed by default.
Examples
gnupas --version
gnupas test.pas test.exe
gnupas --path path-to-compiler test.pas test.exe