Fix hamlibdatetime.h error for in-git build

pull/425/head
Michael Black W9MDB 2020-10-16 23:17:28 -05:00
rodzic 146bdf7d41
commit de20ee6533
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -107,7 +107,7 @@ hamlibdatetime.h: FORCE
test ! -x $(top_srcdir)/.git || echo "/* This date time is from the last non-merge commit to Hamlib. */" > $(top_srcdir)/tests/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 SHA=' --format='%cd' -n 1)$$(git --git-dir=$(top_srcdir)/.git log --no-merges | grep commit | head -n 1 | cut -c8-13)\" >> $(top_srcdir)/tests/hamlibdatetime.h
test -f $(top_srcdir)/tests/hamlibdatetime.h || cp $(top_srcdir)/tests/hamlibdatetime.h.in $(top_srcdir)/tests/hamlibdatetime.h
cp $(top_srcdir)/tests/hamlibdatetime.h $(top_builddir)/tests/
test $(top_srcdir) == $(top_builddir) || cp $(top_srcdir)/tests/hamlibdatetime.h $(top_builddir)/tests/;
FORCE: ;