Martin Milata
2013-04-23 17:05:23 UTC
Related to rhbz#905854.
Signed-off-by: Martin Milata <mmilata-H+wXaHxf7aLQT0dZR+***@public.gmane.org>
---
.gitignore | 1 +
Makefile.am | 5 ++++-
satyr.1 | 29 -----------------------------
satyr.1.in | 29 +++++++++++++++++++++++++++++
4 files changed, 34 insertions(+), 30 deletions(-)
delete mode 100644 satyr.1
create mode 100644 satyr.1.in
diff --git a/.gitignore b/.gitignore
index adb0ae9..ae69aa9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@ Makefile
Makefile.in
ar-lib
compile
+satyr.1
/autom4te.cache
/satyr
diff --git a/Makefile.am b/Makefile.am
index 11aaf9b..8ee051c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,7 +10,10 @@ satyr_SOURCES = satyr.c
satyr_LDADD = lib/libsatyr.la
man_MANS = satyr.1
-EXTRA_DIST = $(man_MANS)
+EXTRA_DIST = satyr.1.in
+
+satyr.1: satyr.1.in
+ sed -e "s,\@PACKAGE_STRING\@,$(PACKAGE_STRING),g" $< > $@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = satyr.pc
diff --git a/satyr.1 b/satyr.1
deleted file mode 100644
index b64c33d..0000000
--- a/satyr.1
+++ /dev/null
@@ -1,29 +0,0 @@
-.TH SATYR "1" "2013-03-18" ""
-.SH NAME
-satyr \- create and manipulate problem reports
-.SH SYNOPSIS
-.B satyr
-<command> [option...]
-.SH DESCRIPTION
-.I satyr
-is a command line tool that creates anonymous reports of software problems that
-are suitable for automated processing.
-
-The tool has to be invoked with a
-.I <command>
-that specifies the action to be performed. The available commands are
-documented below.
-
-.SH OPTIONS
-.B Commands
-.IP "abrt\-print\-report\-from\-dir <directory>"
-
-Creates report from ABRT problem directory
-.I directory
-and prints it to standard output.
-
-.IP "abrt\-create\-core\-stacktrace <directory>"
-
-Creates stacktrace from ABRT problem directory
-.I directory
-that contains a core dump.
diff --git a/satyr.1.in b/satyr.1.in
new file mode 100644
index 0000000..00d7178
--- /dev/null
+++ b/satyr.1.in
@@ -0,0 +1,29 @@
+.TH SATYR "1" "2013-03-18" "@PACKAGE_STRING@"
+.SH NAME
+satyr \- create and manipulate problem reports
+.SH SYNOPSIS
+.B satyr
+<command> [option...]
+.SH DESCRIPTION
+.I satyr
+is a command line tool that creates anonymous reports of software problems that
+are suitable for automated processing.
+
+The tool has to be invoked with a
+.I <command>
+that specifies the action to be performed. The available commands are
+documented below.
+
+.SH OPTIONS
+.B Commands
+.IP "abrt\-print\-report\-from\-dir <directory>"
+
+Creates report from ABRT problem directory
+.I directory
+and prints it to standard output.
+
+.IP "abrt\-create\-core\-stacktrace <directory>"
+
+Creates stacktrace from ABRT problem directory
+.I directory
+that contains a core dump.
Signed-off-by: Martin Milata <mmilata-H+wXaHxf7aLQT0dZR+***@public.gmane.org>
---
.gitignore | 1 +
Makefile.am | 5 ++++-
satyr.1 | 29 -----------------------------
satyr.1.in | 29 +++++++++++++++++++++++++++++
4 files changed, 34 insertions(+), 30 deletions(-)
delete mode 100644 satyr.1
create mode 100644 satyr.1.in
diff --git a/.gitignore b/.gitignore
index adb0ae9..ae69aa9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@ Makefile
Makefile.in
ar-lib
compile
+satyr.1
/autom4te.cache
/satyr
diff --git a/Makefile.am b/Makefile.am
index 11aaf9b..8ee051c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,7 +10,10 @@ satyr_SOURCES = satyr.c
satyr_LDADD = lib/libsatyr.la
man_MANS = satyr.1
-EXTRA_DIST = $(man_MANS)
+EXTRA_DIST = satyr.1.in
+
+satyr.1: satyr.1.in
+ sed -e "s,\@PACKAGE_STRING\@,$(PACKAGE_STRING),g" $< > $@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = satyr.pc
diff --git a/satyr.1 b/satyr.1
deleted file mode 100644
index b64c33d..0000000
--- a/satyr.1
+++ /dev/null
@@ -1,29 +0,0 @@
-.TH SATYR "1" "2013-03-18" ""
-.SH NAME
-satyr \- create and manipulate problem reports
-.SH SYNOPSIS
-.B satyr
-<command> [option...]
-.SH DESCRIPTION
-.I satyr
-is a command line tool that creates anonymous reports of software problems that
-are suitable for automated processing.
-
-The tool has to be invoked with a
-.I <command>
-that specifies the action to be performed. The available commands are
-documented below.
-
-.SH OPTIONS
-.B Commands
-.IP "abrt\-print\-report\-from\-dir <directory>"
-
-Creates report from ABRT problem directory
-.I directory
-and prints it to standard output.
-
-.IP "abrt\-create\-core\-stacktrace <directory>"
-
-Creates stacktrace from ABRT problem directory
-.I directory
-that contains a core dump.
diff --git a/satyr.1.in b/satyr.1.in
new file mode 100644
index 0000000..00d7178
--- /dev/null
+++ b/satyr.1.in
@@ -0,0 +1,29 @@
+.TH SATYR "1" "2013-03-18" "@PACKAGE_STRING@"
+.SH NAME
+satyr \- create and manipulate problem reports
+.SH SYNOPSIS
+.B satyr
+<command> [option...]
+.SH DESCRIPTION
+.I satyr
+is a command line tool that creates anonymous reports of software problems that
+are suitable for automated processing.
+
+The tool has to be invoked with a
+.I <command>
+that specifies the action to be performed. The available commands are
+documented below.
+
+.SH OPTIONS
+.B Commands
+.IP "abrt\-print\-report\-from\-dir <directory>"
+
+Creates report from ABRT problem directory
+.I directory
+and prints it to standard output.
+
+.IP "abrt\-create\-core\-stacktrace <directory>"
+
+Creates stacktrace from ABRT problem directory
+.I directory
+that contains a core dump.
--
1.7.11.7
1.7.11.7