Martin Milata
2013-04-23 17:04:40 UTC
Fixes rhbz#905854.
Signed-off-by: Martin Milata <mmilata-H+wXaHxf7aLQT0dZR+***@public.gmane.org>
---
.gitignore | 1 +
Makefile.am | 5 ++++-
Makefile.in | 5 ++++-
btparser.1 | 55 -------------------------------------------------------
btparser.1.in | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 64 insertions(+), 57 deletions(-)
delete mode 100644 btparser.1
create mode 100644 btparser.1.in
diff --git a/.gitignore b/.gitignore
index cfcfe33..055238f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,7 @@
Makefile
autom4te.cache
btparser
+btparser.1
btparser.pc
btparser.spec
*.o
diff --git a/Makefile.am b/Makefile.am
index 9ef0032..f7a0bcf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,7 +8,10 @@ btparser_SOURCES = btparser.c
btparser_LDADD = lib/libbtparser.la
man_MANS = btparser.1
-EXTRA_DIST = $(man_MANS)
+EXTRA_DIST = btparser.1.in
+
+btparser.1: btparser.1.in
+ sed -e "s,\@PACKAGE_STRING\@,$(PACKAGE_STRING),g" $< > $@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = btparser.pc
diff --git a/Makefile.in b/Makefile.in
index c492958..8655737 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -326,7 +326,7 @@ btparser_CFLAGS = -Wall
btparser_SOURCES = btparser.c
btparser_LDADD = lib/libbtparser.la
man_MANS = btparser.1
-EXTRA_DIST = $(man_MANS) btparser.pc.in autogen.sh RELEASE \
+EXTRA_DIST = btparser.1.in btparser.pc.in autogen.sh RELEASE \
btparser.spec.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = btparser.pc
@@ -1016,6 +1016,9 @@ uninstall-man: uninstall-man1
uninstall-binPROGRAMS uninstall-man uninstall-man1 \
uninstall-pkgconfigDATA
+
+btparser.1: btparser.1.in
+ sed -e "s,\@PACKAGE_STRING\@,$(PACKAGE_STRING),g" $< > $@
.PHONY: upload
upload:
make dist-gzip
diff --git a/btparser.1 b/btparser.1
deleted file mode 100644
index eee2fef..0000000
--- a/btparser.1
+++ /dev/null
@@ -1,55 +0,0 @@
-.TH btparser "1" "24 May 2010" ""
-.SH NAME
-btparser \- a backtrace analyzer
-.SH SYNOPSIS
-.B btparser
-[option]... [FILE]...
-.SH DESCRIPTION
-.I btparser
-is a command line tool that analyzes backtraces produced by
-GDB and provides their textual representation useful for
-crash duplication detection.
-
-By default, btparser prints the backtrace tree created by
-parsing the input file.
-
-.SH OPTIONS
-.B Basic startup options
-.IP "\-V, \-\-version"
-Displays version of btparser.
-.IP "\-?, \-\-help"
-Print a help message describing all of btparser’s command-line options.
-
-.PP
-.B Actions
-.IP "\-r, \-\-rate"
-Print a float number between 0 and 1, representing the quality of the
-backtrace.
-.IP "\-c, \-\-crash\-function"
-Print the name of the function where the program crashed, if it's
-successfully detected.
-.IP "\-h, \-\-duplicate\-hash"
-Print a short, textual representation of the backtrace, useful for
-detecting the backtrace duplicates.
-.IP "\-s, \-\-distances"
-Print Damerau–Levenshtein distances between the backtraces specified on the command
-line.
-.IP "\-g, \-\-dendrogram"
-Cluster backtraces by their distance and print an ASCII representation of the
-dendrogram.
-.IP "\-l, \-\-clusters=LEVEL"
-Print clusters cut from the dendrogram at the specified level.
-
-.PP
-.B Additional options
-.IP "\-i, \-\-stdin"
-Read input from the standard input rather than file.
-.IP "\-m, \-\-max\-frames=FRAMES"
-When creating optimized backtrace or preparing backtrace for comparison, limit
-the number of frames to FRAMES. (default 8)
-.IP "\-z, \-\-min\-cluster\-size=SIZE"
-When printing clusters, ignore clusters that contain fewer than SIZE objects. (default 2)
-.IP "\-d, \-\-debug"
-Prints debug information when scanning/parsing the backtrace.
-.IP "\-v, \-\-verbose"
-Print more output than usual.
diff --git a/btparser.1.in b/btparser.1.in
new file mode 100644
index 0000000..036b9f2
--- /dev/null
+++ b/btparser.1.in
@@ -0,0 +1,55 @@
+.TH btparser "1" "24 May 2010" "@PACKAGE_STRING@"
+.SH NAME
+btparser \- a backtrace analyzer
+.SH SYNOPSIS
+.B btparser
+[option]... [FILE]...
+.SH DESCRIPTION
+.I btparser
+is a command line tool that analyzes backtraces produced by
+GDB and provides their textual representation useful for
+crash duplication detection.
+
+By default, btparser prints the backtrace tree created by
+parsing the input file.
+
+.SH OPTIONS
+.B Basic startup options
+.IP "\-V, \-\-version"
+Displays version of btparser.
+.IP "\-?, \-\-help"
+Print a help message describing all of btparser’s command-line options.
+
+.PP
+.B Actions
+.IP "\-r, \-\-rate"
+Print a float number between 0 and 1, representing the quality of the
+backtrace.
+.IP "\-c, \-\-crash\-function"
+Print the name of the function where the program crashed, if it's
+successfully detected.
+.IP "\-h, \-\-duplicate\-hash"
+Print a short, textual representation of the backtrace, useful for
+detecting the backtrace duplicates.
+.IP "\-s, \-\-distances"
+Print Damerau–Levenshtein distances between the backtraces specified on the command
+line.
+.IP "\-g, \-\-dendrogram"
+Cluster backtraces by their distance and print an ASCII representation of the
+dendrogram.
+.IP "\-l, \-\-clusters=LEVEL"
+Print clusters cut from the dendrogram at the specified level.
+
+.PP
+.B Additional options
+.IP "\-i, \-\-stdin"
+Read input from the standard input rather than file.
+.IP "\-m, \-\-max\-frames=FRAMES"
+When creating optimized backtrace or preparing backtrace for comparison, limit
+the number of frames to FRAMES. (default 8)
+.IP "\-z, \-\-min\-cluster\-size=SIZE"
+When printing clusters, ignore clusters that contain fewer than SIZE objects. (default 2)
+.IP "\-d, \-\-debug"
+Prints debug information when scanning/parsing the backtrace.
+.IP "\-v, \-\-verbose"
+Print more output than usual.
Signed-off-by: Martin Milata <mmilata-H+wXaHxf7aLQT0dZR+***@public.gmane.org>
---
.gitignore | 1 +
Makefile.am | 5 ++++-
Makefile.in | 5 ++++-
btparser.1 | 55 -------------------------------------------------------
btparser.1.in | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 64 insertions(+), 57 deletions(-)
delete mode 100644 btparser.1
create mode 100644 btparser.1.in
diff --git a/.gitignore b/.gitignore
index cfcfe33..055238f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,7 @@
Makefile
autom4te.cache
btparser
+btparser.1
btparser.pc
btparser.spec
*.o
diff --git a/Makefile.am b/Makefile.am
index 9ef0032..f7a0bcf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,7 +8,10 @@ btparser_SOURCES = btparser.c
btparser_LDADD = lib/libbtparser.la
man_MANS = btparser.1
-EXTRA_DIST = $(man_MANS)
+EXTRA_DIST = btparser.1.in
+
+btparser.1: btparser.1.in
+ sed -e "s,\@PACKAGE_STRING\@,$(PACKAGE_STRING),g" $< > $@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = btparser.pc
diff --git a/Makefile.in b/Makefile.in
index c492958..8655737 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -326,7 +326,7 @@ btparser_CFLAGS = -Wall
btparser_SOURCES = btparser.c
btparser_LDADD = lib/libbtparser.la
man_MANS = btparser.1
-EXTRA_DIST = $(man_MANS) btparser.pc.in autogen.sh RELEASE \
+EXTRA_DIST = btparser.1.in btparser.pc.in autogen.sh RELEASE \
btparser.spec.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = btparser.pc
@@ -1016,6 +1016,9 @@ uninstall-man: uninstall-man1
uninstall-binPROGRAMS uninstall-man uninstall-man1 \
uninstall-pkgconfigDATA
+
+btparser.1: btparser.1.in
+ sed -e "s,\@PACKAGE_STRING\@,$(PACKAGE_STRING),g" $< > $@
.PHONY: upload
upload:
make dist-gzip
diff --git a/btparser.1 b/btparser.1
deleted file mode 100644
index eee2fef..0000000
--- a/btparser.1
+++ /dev/null
@@ -1,55 +0,0 @@
-.TH btparser "1" "24 May 2010" ""
-.SH NAME
-btparser \- a backtrace analyzer
-.SH SYNOPSIS
-.B btparser
-[option]... [FILE]...
-.SH DESCRIPTION
-.I btparser
-is a command line tool that analyzes backtraces produced by
-GDB and provides their textual representation useful for
-crash duplication detection.
-
-By default, btparser prints the backtrace tree created by
-parsing the input file.
-
-.SH OPTIONS
-.B Basic startup options
-.IP "\-V, \-\-version"
-Displays version of btparser.
-.IP "\-?, \-\-help"
-Print a help message describing all of btparser’s command-line options.
-
-.PP
-.B Actions
-.IP "\-r, \-\-rate"
-Print a float number between 0 and 1, representing the quality of the
-backtrace.
-.IP "\-c, \-\-crash\-function"
-Print the name of the function where the program crashed, if it's
-successfully detected.
-.IP "\-h, \-\-duplicate\-hash"
-Print a short, textual representation of the backtrace, useful for
-detecting the backtrace duplicates.
-.IP "\-s, \-\-distances"
-Print Damerau–Levenshtein distances between the backtraces specified on the command
-line.
-.IP "\-g, \-\-dendrogram"
-Cluster backtraces by their distance and print an ASCII representation of the
-dendrogram.
-.IP "\-l, \-\-clusters=LEVEL"
-Print clusters cut from the dendrogram at the specified level.
-
-.PP
-.B Additional options
-.IP "\-i, \-\-stdin"
-Read input from the standard input rather than file.
-.IP "\-m, \-\-max\-frames=FRAMES"
-When creating optimized backtrace or preparing backtrace for comparison, limit
-the number of frames to FRAMES. (default 8)
-.IP "\-z, \-\-min\-cluster\-size=SIZE"
-When printing clusters, ignore clusters that contain fewer than SIZE objects. (default 2)
-.IP "\-d, \-\-debug"
-Prints debug information when scanning/parsing the backtrace.
-.IP "\-v, \-\-verbose"
-Print more output than usual.
diff --git a/btparser.1.in b/btparser.1.in
new file mode 100644
index 0000000..036b9f2
--- /dev/null
+++ b/btparser.1.in
@@ -0,0 +1,55 @@
+.TH btparser "1" "24 May 2010" "@PACKAGE_STRING@"
+.SH NAME
+btparser \- a backtrace analyzer
+.SH SYNOPSIS
+.B btparser
+[option]... [FILE]...
+.SH DESCRIPTION
+.I btparser
+is a command line tool that analyzes backtraces produced by
+GDB and provides their textual representation useful for
+crash duplication detection.
+
+By default, btparser prints the backtrace tree created by
+parsing the input file.
+
+.SH OPTIONS
+.B Basic startup options
+.IP "\-V, \-\-version"
+Displays version of btparser.
+.IP "\-?, \-\-help"
+Print a help message describing all of btparser’s command-line options.
+
+.PP
+.B Actions
+.IP "\-r, \-\-rate"
+Print a float number between 0 and 1, representing the quality of the
+backtrace.
+.IP "\-c, \-\-crash\-function"
+Print the name of the function where the program crashed, if it's
+successfully detected.
+.IP "\-h, \-\-duplicate\-hash"
+Print a short, textual representation of the backtrace, useful for
+detecting the backtrace duplicates.
+.IP "\-s, \-\-distances"
+Print Damerau–Levenshtein distances between the backtraces specified on the command
+line.
+.IP "\-g, \-\-dendrogram"
+Cluster backtraces by their distance and print an ASCII representation of the
+dendrogram.
+.IP "\-l, \-\-clusters=LEVEL"
+Print clusters cut from the dendrogram at the specified level.
+
+.PP
+.B Additional options
+.IP "\-i, \-\-stdin"
+Read input from the standard input rather than file.
+.IP "\-m, \-\-max\-frames=FRAMES"
+When creating optimized backtrace or preparing backtrace for comparison, limit
+the number of frames to FRAMES. (default 8)
+.IP "\-z, \-\-min\-cluster\-size=SIZE"
+When printing clusters, ignore clusters that contain fewer than SIZE objects. (default 2)
+.IP "\-d, \-\-debug"
+Prints debug information when scanning/parsing the backtrace.
+.IP "\-v, \-\-verbose"
+Print more output than usual.
--
1.7.11.7
1.7.11.7