From 42354876de823f52a431eac900d360c074c6198d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 15 Jul 2021 14:56:58 -0300 Subject: aux/lib.sh: Add mkstemp and mkdtemp, and copy uuid over The tests were relying on the unspecified and non-standartized behaviour of "mktemp". Now they use "mkstemp()", a shim sh function to provide the expected behaviour, and an accompanying "mkdtemp()" function is also defined. To further decouple from specific implementations and OS-behaviours and quirks, a aux/lib.sh file containing both those functions was added. Its purpose is to also allow code under aux/ to not depend on specific behaviour. "mkdtemp()" had to be replicated in aux/ci/ci-build.sh, since it runs outside the repository. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ffce969..4132e0a 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ dev-check: check public sh aux/workflow/assert-changelog.sh -n $(NAME) sh aux/workflow/assert-readme.sh -n $(NAME) -m $(MAILING_LIST) sh aux/workflow/assert-manpages.sh -n $(NAME) -m $(MAILING_LIST) -l '$(TRANSLATIONS) en' $(manpages.en.in) - $(MAKE) PREFIX=`mktemp -d` install installcheck uninstall uninstallcheck + . aux/lib.sh && $(MAKE) PREFIX=`mkdtemp` install installcheck uninstall uninstallcheck install: all mkdir -p $(DESTDIR)$(PREFIX)/bin -- cgit v1.2.3