Merge branch 'main' of git.sr.ht:~trinity/src
This commit is contained in:
commit
29d2c5e8a8
50
simexec/packaging.md
Normal file
50
simexec/packaging.md
Normal file
@ -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
|
||||
|
||||
- `<sysexits.h>`
|
||||
- Ignored if `EX_USAGE` is already defined.
|
||||
|
||||
- C standard library
|
||||
|
||||
## Compilation
|
||||
|
||||
```
|
||||
cc -o simexec simexec.c
|
||||
```
|
||||
|
||||
Or without `<sysexits.h>`:
|
||||
|
||||
```
|
||||
cc -DEX_USAGE=1 -o simexec simexec.c
|
||||
```
|
||||
|
||||
## Known packages
|
||||
|
||||
- [On the Arch User Repository](https://aur.archlinux.org/packages/simexec-git).
|
@ -1,7 +1,10 @@
|
||||
#include <stdio.h> /* fprintf(3), NULL */
|
||||
#include <sysexits.h> /* EX_USAGE */
|
||||
#include <unistd.h> /* execv(3), */
|
||||
|
||||
#if !defined EX_USAGE
|
||||
# include <sysexits.h> /* EX_USAGE */
|
||||
#endif
|
||||
|
||||
static char *program_name = "simexec";
|
||||
|
||||
int main(int argc, char *argv[]){
|
||||
|
Loading…
Reference in New Issue
Block a user