Really fix hamlibdatetime.h handling!

At least I hope so...
pull/281/head
Nate Bargmann 2020-05-31 07:42:02 -05:00
rodzic 10271c558e
commit 57e7f030bf
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F72625E2EDBED598
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -72,7 +72,8 @@ rigmatrix.html: rigmatrix_head.html rigmatrix listrigs
endif
EXTRA_DIST = rigmatrix_head.html rig_split_lst.awk testctld.pl testrotctld.pl
EXTRA_DIST = rigmatrix_head.html rig_split_lst.awk testctld.pl testrotctld.pl \
hamlibdatetime.h.in
# Support 'make check' target for simple tests
check_SCRIPTS = testrig.sh testfreq.sh testbcd.sh testloc.sh
@ -99,9 +100,9 @@ testloc.sh:
# If we have a .git directory then we will generate the hamlibdate.h file.
# if not, then copy the placeholder.
hamlibdatetime.h: FORCE
test -x $(top_srcdir)/.git || cp $(srcdir)/hamlibdatetime.h.in $(srcdir)/hamlibdatetime.h
test ! -x $(top_srcdir)/.git || echo "/* This date time is from the last non-merge commit to Hamlib. */" > $(srcdir)/hamlibdatetime.h
test ! -x $(top_srcdir)/.git || echo "#define HAMLIBDATETIME "\"$$(TZ=UTC git --git-dir=$(top_srcdir)/.git log --no-merges --date='format-local:%a %b %d %H:%M:%S %Y %z' --format='%cd' -n 1)\""" >> $(srcdir)/hamlibdatetime.h
test -f $(srcdir)/hamlibdatetime.h || cp $(srcdir)/hamlibdatetime.h.in $(srcdir)/hamlibdatetime.h
FORCE: ;