Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | build: Generate "FORMATS" file in $(distdir) | P. J. McDermott | 2023-10-05 | 1 | -4/+8 |
| | | | | | | Fixes: make[2]: *** No rule to make target 'FORMATS', needed by 'distdir-am'. Stop. | ||||
* | build: Automake broke the test suite summary | P. J. McDermott | 2023-10-05 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | Because of this in our Makefile.am: PACKAGE_VERSION_GIT = $$(git describe --tags --dirty | sed 's|^[^/-]*[/-]||') PACKAGE_STRING = $(PACKAGE_NAME) $(PACKAGE_VERSION_GIT) and this in Automake lib/am/check.am since version 1.16.3: AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' the test suite summary header came out like this: /bin/bash: -c: line 64: syntax error near unexpected token `(' /bin/bash: -c: line 64: `echo "${col}Testsuite summary"' for @ 1.0.0$(printf ' (%s)' "$({ git describe --tags --dirty 2>/dev/null || printf '%s-g%s' "$(git rev-list --count HEAD)" "$(git describe --tags --dirty --always)"; } | sed 's|^.*/||')")'"${std}"; \' but is now fixed to look like this: ============================================================================ Testsuite summary for @ 1.0.0 (93-g86a7f46-dirty) ============================================================================ | ||||
* | m4: Update | P. J. McDermott | 2023-10-05 | 8 | -369/+476 |
| | | | | | - m4/ax_cflags_warn_all.m4 now requires m4/ax_compiler_vendor.m4 - m4/ax_cflags_warn_all.m4 now requires m4/ax_prepend_flag.m4 | ||||
* | scripts/update-m4.sh: New script | P. J. McDermott | 2023-10-05 | 1 | -0/+30 |
| | |||||
* | build: Optionally install "@" symbolic link | P. J. McDermott | 2023-10-05 | 2 | -0/+28 |
| | |||||
* | build: Rename binary to "atsign" | P. J. McDermott | 2023-10-05 | 5 | -14/+14 |
| | | | | | | Fixes: gcc: error: @-file refers to a directory | ||||
* | tests: Parameterize times | P. J. McDermott | 2022-03-29 | 1 | -15/+19 |
| | |||||
* | datetime: Drop newly unused use of timegm() | P. J. McDermott | 2022-03-29 | 4 | -27/+1 |
| | | | | It's non-standard. | ||||
* | main: If debugging, print formatted time | P. J. McDermott | 2022-03-29 | 3 | -6/+9 |
| | | | | Not seconds since Epoch. | ||||
* | datetime: Get target (struct tm *) from caller | P. J. McDermott | 2022-03-29 | 4 | -21/+22 |
| | |||||
* | datetime: Use difftime() in normalization | P. J. McDermott | 2022-03-28 | 2 | -3/+2 |
| | |||||
* | datetime: Don't use mktime()/localtime() shortcuts | P. J. McDermott | 2022-03-28 | 2 | -21/+31 |
| | |||||
* | TODO: Add tasks | P. J. McDermott | 2022-03-27 | 1 | -0/+9 |
| | |||||
* | datetime: Change sanity checks | P. J. McDermott | 2022-03-23 | 1 | -4/+4 |
| | | | | | | Check if the year is earlier than 1900 instead of 1970. Step one of eliminating timegm(). | ||||
* | datetime: s/ ;/;/ | P. J. McDermott | 2022-03-23 | 1 | -2/+2 |
| | |||||
* | datetime: Add glibc timegm() feature test macros | P. J. McDermott | 2022-03-22 | 1 | -0/+3 |
| | |||||
* | Update copyright years | P. J. McDermott | 2022-03-22 | 6 | -6/+5 |
| | |||||
* | .gitignore: Exclude FORMATS | P. J. McDermott | 2022-03-22 | 1 | -0/+1 |
| | |||||
* | datetime, formats: Conform to strptime() space req | P. J. McDermott | 2022-03-22 | 3 | -22/+56 |
| | |||||
* | datetime: Fix initial formatting buffer size | P. J. McDermott | 2022-03-22 | 1 | -1/+1 |
| | |||||
* | datetime: Don't forget to copy NUL chars to buffer | P. J. McDermott | 2022-03-22 | 1 | -6/+6 |
| | |||||
* | datetime: Copy time-only & misc formats to buffer | P. J. McDermott | 2022-03-22 | 1 | -3/+12 |
| | |||||
* | formats: Reformat comment | P. J. McDermott | 2022-03-22 | 1 | -2/+7 |
| | |||||
* | formats: Remove extra space in some misc formats | P. J. McDermott | 2022-03-22 | 1 | -4/+4 |
| | |||||
* | TODO: Add | P. J. McDermott | 2022-03-21 | 1 | -0/+2 |
| | |||||
* | README, build: Generate list of formats | P. J. McDermott | 2022-03-21 | 4 | -74/+25 |
| | |||||
* | build: Simplify dist-hook | P. J. McDermott | 2022-03-21 | 1 | -8/+6 |
| | |||||
* | formats: Add formats with "%a." and "%b." | P. J. McDermott | 2022-03-21 | 3 | -1/+98 |
| | |||||
* | formats: Lengthen date format strings | P. J. McDermott | 2022-03-21 | 1 | -132/+132 |
| | |||||
* | datetime: Move formats into another file | P. J. McDermott | 2022-03-21 | 4 | -195/+217 |
| | |||||
* | TODO: Add | P. J. McDermott | 2022-03-20 | 1 | -0/+4 |
| | |||||
* | datetime: Print full weekday and month names | P. J. McDermott | 2022-03-20 | 2 | -0/+181 |
| | |||||
* | datetime: Lengthen comments | P. J. McDermott | 2022-03-20 | 1 | -46/+46 |
| | |||||
* | datetime: Add formats with "." | P. J. McDermott | 2022-03-20 | 3 | -1/+14 |
| | |||||
* | tests: Add format listing test | P. J. McDermott | 2022-03-20 | 4 | -1/+107 |
| | |||||
* | main: Replace strtol() calls with sscanf() | P. J. McDermott | 2022-03-20 | 3 | -27/+9 |
| | |||||
* | Add --disable-tests to shrink executable size | P. J. McDermott | 2022-03-20 | 5 | -11/+58 |
| | |||||
* | TODO: Add tasks | P. J. McDermott | 2022-03-20 | 1 | -0/+7 |
| | |||||
* | main: Update copyright years in version output | P. J. McDermott | 2022-03-19 | 1 | -1/+1 |
| | |||||
* | datetime: Sanity check parsing results | P. J. McDermott | 2022-03-19 | 2 | -12/+37 |
| | | | | | | | | | | | | | | | | | | | Previously, "0000 1970-01-01" was parsed as 00:00:19 70-01-01. Fixes: not ok 614 - 0000 1970-01-01 FAIL: tests/parse.sh 614 - 0000 1970-01-01 # Failed test '0000 1970-01-01' # got: '-59958143981' # expected: '0' ok 615 - 1970/01/01 0000 PASS: tests/parse.sh 615 - 1970/01/01 0000 not ok 616 - 0000 1970/01/01 FAIL: tests/parse.sh 616 - 0000 1970/01/01 # Failed test '0000 1970/01/01' # got: '-59958143981' # expected: '0' | ||||
* | datetime: Add function to get seconds since Epoch | P. J. McDermott | 2022-03-19 | 3 | -14/+26 |
| | | | | And use it in main(). | ||||
* | datetime: Update new _datetime_normalize() call | P. J. McDermott | 2022-03-19 | 1 | -1/+1 |
| | |||||
* | main: Pass NULL to time() | P. J. McDermott | 2022-03-19 | 1 | -2/+2 |
| | | | | | | | | | | | | | | If the argument points outside the accessible address space, Linux's time() system call returns a negative value. [1] But since this is indistinguishable from a successful report that the time is before the Epoch, glibc never actually sets errno. The Linux man-pages project recommends: "The tloc argument is obsolescent and should always be NULL in new code. When tloc is NULL, the call cannot fail." [2] [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/kernel/time/time.c [2]: https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/man2/time.2?id=300c07ddd873fa1abbff96262ec365271e429dab | ||||
* | Merge branch 'feature/tests' | P. J. McDermott | 2022-03-19 | 11 | -38/+1077 |
|\ | |||||
| * | tests: Print format listing as TAP diagnostics | P. J. McDermott | 2022-03-19 | 1 | -3/+7 |
| | | |||||
| * | main: Populate day of week in "now" time | P. J. McDermott | 2022-03-19 | 1 | -28/+33 |
| | | | | | | | | Needed for format listing. | ||||
| * | main: Allow faking current time | P. J. McDermott | 2022-03-19 | 2 | -20/+62 |
| | | | | | | | | Drop use of faketime in tests. | ||||
| * | datetime: Get now (struct tm) from caller | P. J. McDermott | 2022-03-18 | 3 | -19/+18 |
| | | |||||
| * | datetime: Move & unify time() & localtime() calls | P. J. McDermott | 2022-03-18 | 1 | -6/+3 |
| | | |||||
| * | tests: Use @'s -F option to auto test all fmts | P. J. McDermott | 2022-03-17 | 1 | -79/+20 |
| | |