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
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",