]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Manpage fix for Darwin by Matt. Rewritten by REW
authorRogier Wolff <R.E.Wolff@BitWizard.nl>
Thu, 14 Feb 2019 11:18:41 +0000 (12:18 +0100)
committerRogier Wolff <R.E.Wolff@BitWizard.nl>
Thu, 14 Feb 2019 11:18:41 +0000 (12:18 +0100)
build-aux/mangen.sh
ui/gtk.c

index 2c12d87127e930a04acefa9beeeb528fd02e0cd2..6ce777e71b0a5493a4ed181704b039fc68c265ec 100755 (executable)
@@ -11,4 +11,19 @@ if [ $# -lt 3 ]; then
     exit 1
 fi
 
-sed -e "s|@VERSION[@]|$1|g" $2 >$3
+VERSION=$1
+IN=$2
+OUT=$3
+
+#
+#  MacOS's groff is missing .UR and .UE support, which makes
+#  URL completely disappear from man pages.  We need to strip
+#  those codes out when building for MacOS
+#
+if [ $(uname -s) = "Darwin" ]; then
+   RMURUE='-e s/\.UR.//g -e s/\.UE//g'
+else
+   RMURUE=""
+fi
+
+sed -e "s|@VERSION[@]|$VERSION|g" $RMURUE $IN >$OUT
index a89e1f6fa3c4ccebe5a8c6e22b601135e73834b5..a978d3573f2a55fca7af22338145b78073aa843a 100644 (file)
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -198,7 +198,7 @@ static gint About_clicked(
     gtk_show_about_dialog(GTK_WINDOW(main_window)
                           , "version", PACKAGE_VERSION, "copyright",
                           "Copyright \xc2\xa9 1997,1998  Matt Kimball",
-                          "website", "http://www.bitwizard.nl/mtr/",
+                          "website", "https://www.bitwizard.nl/mtr/",
                           "authors", authors, "comments",
                           "The 'traceroute' and 'ping' programs in a single network diagnostic tool.",
                           "license",