Commit [ce2464] modify recipe for regenerating timestamp.h during build from git source
by Mojca solves the issue.
Thanks!
Tatsuro
----- Original Message -----
> From: Dima Kogan <gn...@di...>
> To: gnu...@li...
> Cc:
> Date: 2018/2/14, Wed 04:32
> Subject: Re: gnuplot_date[] in timestamp.h is empty building source from git in case of build directory being special
>
>T atsuro 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
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>
|