diff --git a/simexec/packaging.md b/simexec/packaging.md new file mode 100644 index 0000000..ec567a5 --- /dev/null +++ b/simexec/packaging.md @@ -0,0 +1,50 @@ +# Packaging simexec.c + +## License + +Simexec is Public Domain so there are basically no barriers when it comes to +licensing. And if you somehow violate my already-forfeited copyright, I promise +I won't sue you. + +## Files + +- `src/simexec` + - Can be moved to a system sources directory if it's desirable to keep + system sources on hand. Doesn't reference anything else in the + repository. + +- `simexec.1` + - Included manual page for `simexec`. Can be placed in the appropriate + manual pages directory. If it displays weirdly and your fix is + portable, mail me and I'll probably bring it upstream. + +- `simexec.c` + - A single C file that builds to a single executable, which should be + named `simexec`. + +- `simexec` + - Program binary. Should be placed in a user-accessible binaries + directory. + +## Dependencies + +- `` + - Ignored if `EX_USAGE` is already defined. + +- C standard library + +## Compilation + +``` +cc -o simexec simexec.c +``` + +Or without ``: + +``` +cc -DEX_USAGE=1 -o simexec simexec.c +``` + +## Known packages + +- [On the Arch User Repository](https://aur.archlinux.org/packages/simexec-git). diff --git a/simexec/simexec.c b/simexec/simexec.c index 069adf4..f8ae7d3 100644 --- a/simexec/simexec.c +++ b/simexec/simexec.c @@ -1,7 +1,10 @@ #include /* fprintf(3), NULL */ -#include /* EX_USAGE */ #include /* execv(3), */ +#if !defined EX_USAGE +# include /* EX_USAGE */ +#endif + static char *program_name = "simexec"; int main(int argc, char *argv[]){