Download pre-built binaries and the accompanying man page from the Release page at GitHub.
Alternatively, you can build the program from source as shown in the next step.
Clone the GitHub repository. Then use
make to build the program:
makeIf you downloaded the binary from the Release page, follow the instructions there.
If you built the program yourself using make, you can run it with
make runAlternatively, to run manually:
./bin/release/todayYou should see the current date printed out in the YY/MM/DD = Www format, for
example
25/05/14 = Wed
To install the program, run
make installThe man page will be installed alongside the program. You might need sudo
privileges. Run make help for customization options. To install the
binary and the man page manually, copy them to their default destinations or to
directories of your choice:
| Source | Default Destination |
|---|---|
./bin/release/today |
/usr/local/bin/ |
./docs/man/today.1 |
/usr/local/share/man/man3/ |
To uninstall the program and the man page, run
make uninstallAs is typical with command-line programs, run
today --helpfor help. If the man page has been installed, you can run
man todayto view the manual page for more information.
For source code and project files, please see the GitHub repository.