aboutsummaryrefslogtreecommitdiffstats
path: root/tools/missing-macros/src/bin/help2man
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-01-13 07:48:52 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-01-13 07:48:52 +0000
commitebc223a2173bb0c16c0fdff0aee0b269f1e8711d (patch)
tree685af91c0e6af0935a45a339d83bc87e0f5eef5a /tools/missing-macros/src/bin/help2man
parent450e2156cd98b00ab4cb6bd4ac47ef5f134739dd (diff)
downloadupstream-ebc223a2173bb0c16c0fdff0aee0b269f1e8711d.tar.gz
upstream-ebc223a2173bb0c16c0fdff0aee0b269f1e8711d.tar.bz2
upstream-ebc223a2173bb0c16c0fdff0aee0b269f1e8711d.zip
tools: add dummy scripts for help2man and makeinfo
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43957 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/missing-macros/src/bin/help2man')
-rwxr-xr-xtools/missing-macros/src/bin/help2man29
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/missing-macros/src/bin/help2man b/tools/missing-macros/src/bin/help2man
new file mode 100755
index 0000000000..6cbec57c50
--- /dev/null
+++ b/tools/missing-macros/src/bin/help2man
@@ -0,0 +1,29 @@
+#!/usr/bin/env perl
+
+use strict;
+use Getopt::Long;
+
+my $output;
+my $version;
+
+Getopt::Long::Configure('pass_through');
+Getopt::Long::GetOptions(
+ 'output=s' => \$output,
+ 'version' => \$version
+);
+
+if ($version)
+{
+ printf "OpenWrt help2man 1.40.10\n";
+ exit 0;
+}
+elsif ($output)
+{
+ open O, "> $output" || die "Unable to open $output: $!\n";
+ print O "Dummy man page.\n";
+ close O;
+}
+else
+{
+ print O "Dummy man page.\n";
+}