From: Dima K. <gn...@di...> - 2018-02-13 19:33:04
|
Tatsuro MATSUOKA <tma...@ya...> writes: > case > > cd (source tree) > > ./prepare > cd .. > mkdir .build > cd ,build > ../gnuplot-main/configure > make > > give empty gnuplot_date[] in timestamp.h OK, that makes sense. This patch will fix it: diff --git a/src/Makefile.am b/src/Makefile.am index 9c57550f7..1ce9735a4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -110,7 +110,7 @@ timestamp.h: $(top_srcdir)/.git/${git_current} Makefile @echo Making $@ @echo "#ifndef GNUPLOT_TIMEBASE_H_INCLUDED" >$@t @echo "#define GNUPLOT_TIMEBASE_H_INCLUDED" >>$@t - @echo "const char gnuplot_date[] = \"`git log -1 --format=%ci | cut -b-11`\";" >>$@t + @echo "const char gnuplot_date[] = \"`git --git-dir '$(top_srcdir)/.git' log -1 --format=%ci | cut -b-11`\";" >>$@t @echo "#endif /* GNUPLOT_TIMEBASE_H_INCLUDED */" >> $@t @if cmp -s $@ $@t; then rm -f $@t; else mv $@t $@; fi If the |