kopia lustrzana https://github.com/Hamlib/Hamlib
Rename tests/hamlibdatetime.h
Rename tests/hamlibdatetime.h to tests/hamlibdatetime.h.in which is tracked and ignore tests/hamlibdatetime.h which is not tracked and will be generated or copied depending on whether the top source directory is a Git working tree or not.pull/281/head
rodzic
b534f1b36e
commit
9bafc86fec
|
@ -57,5 +57,5 @@ tests/rigsmtr
|
||||||
tests/rigswr
|
tests/rigswr
|
||||||
tests/rotctl
|
tests/rotctl
|
||||||
tests/rotctld
|
tests/rotctld
|
||||||
|
tests/hamlibdatetime.h
|
||||||
build/
|
build/
|
||||||
|
|
|
@ -96,8 +96,10 @@ testloc.sh:
|
||||||
echo './testloc EM79UT96LW 5' > testloc.sh
|
echo './testloc EM79UT96LW 5' > testloc.sh
|
||||||
chmod +x ./testloc.sh
|
chmod +x ./testloc.sh
|
||||||
|
|
||||||
# If we have a .git directory then we will update the hamlibdate.h file
|
# If we have a .git directory then we will generate the hamlibdate.h file.
|
||||||
|
# if not, then copy the placeholder.
|
||||||
hamlibdatetime.h: FORCE
|
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 "/* 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 ! -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
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue