Commit d81595c4 authored by chrfranke's avatar chrfranke
Browse files

Makefile.am: Support 'svnversion' with CR/LF instead of LF output.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5367 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 3214da57
......@@ -2,6 +2,8 @@ $Id$
2022-04-30 Christian Franke <franke@computer.org>
Makefile.am: Support 'svnversion' with CR/LF instead of LF output.
dev_jmb39x_raid.cpp: Enhance LBA range from 33-62 to 1-255 (#1594).
smartctl.8.in: Update related documentation.
......
......@@ -489,7 +489,7 @@ svnversion.h: ChangeLog Makefile $(svn_deps)
@echo ' svn info | $$(VERSION_FROM_SVN_INFO) > $@'
@echo '/* svnversion.h. Generated by Makefile from svn info. */' > $@
@(cd $(srcdir) \
&& svnversion 2>/dev/null | sed -n 's,^\([0-9].*\),REV "\1",p' \
&& svnversion 2>/dev/null | sed -n 's,^\([0-9][:0-9A-Z]*\).*$$,REV "\1",p' \
&& TZ= LC_ALL=C svn info 2>/dev/null \
| sed -n 'h;s,^.* Date: *\([^ ]*\) .*$$,DATE "\1",p;g;s,^.* Date: *[^ ]* *\([^ ]*\) .*$$,TIME "\1",p') \
| sed 's,^,#define SMARTMONTOOLS_SVN_,' >> $@
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment