mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
version.c string token concatenation.
This commit is contained in:
parent
c94d559bc3
commit
8aef7c1f04
@ -1,3 +1,10 @@
|
||||
2008-06-22 Micah Cowan <micah@cowan.name>
|
||||
|
||||
* Makefile.am (version.c): Fixed version string invocation so it
|
||||
once again can't result in unterminated strings, made all the
|
||||
string vars pointers-to-const, and moved line lengths
|
||||
below 80 (in Makefile.am, not in version.c).
|
||||
|
||||
2008-06-16 Micah Cowan <micah@cowan.name>
|
||||
|
||||
* http.c (http_loop): When hstat.len is higher than the
|
||||
|
@ -55,12 +55,14 @@ version.c: $(wget_SOURCES) $(LDADD) $(srcdir)/Makefile.am
|
||||
echo '/* version.c */' > $@
|
||||
echo '/* Autogenerated by Makefile - DO NOT EDIT */' >> $@
|
||||
echo '' >> $@
|
||||
echo -n 'char* version_string = "@VERSION@ ' >> $@
|
||||
-hg log -r . --template=' ({node|short})"\n' 2>/dev/null >> $@
|
||||
echo -n 'const char *version_string = "@VERSION@"' >> $@
|
||||
-hg log -r . --template='" ({node|short})"\n' 2>/dev/null >> $@
|
||||
echo ';' >> $@
|
||||
echo 'char* compilation_string = "'$(COMPILE)'";' | $(ESCAPEQUOTE) >> $@
|
||||
echo 'char* link_string = "'$(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
$(AM_LDFLAGS) $(LDFLAGS) $(LIBS) $(wget_LDADD)'";' | $(ESCAPEQUOTE) >> $@
|
||||
echo 'const char *compilation_string = "'$(COMPILE)'";' \
|
||||
| $(ESCAPEQUOTE) >> $@
|
||||
echo 'const char *link_string = "'$(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
$(AM_LDFLAGS) $(LDFLAGS) $(LIBS) $(wget_LDADD)'";' \
|
||||
| $(ESCAPEQUOTE) >> $@
|
||||
|
||||
check_LIBRARIES = libunittest.a
|
||||
libunittest_a_SOURCES = $(wget_SOURCES) test.c test.h
|
||||
|
Loading…
Reference in New Issue
Block a user