summaryrefslogtreecommitdiff
path: root/examples/cat
diff options
context:
space:
mode:
authorBill Allombert <ballombe@debian.org>2011-11-16 12:33:27 +0100
committerIgor Pashev <pashev.igor@gmail.com>2013-03-05 16:39:28 +0000
commitdd7279795c97aa356727d366a2149c9bc838b496 (patch)
treea87d19d2e5220f5b38aec3b5b036235a59f971c9 /examples/cat
downloadmenu-debian/2.1.46.tar.gz
Imported Debian version 2.1.46debian/2.1.46
Diffstat (limited to 'examples/cat')
-rwxr-xr-xexamples/cat28
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/cat b/examples/cat
new file mode 100755
index 0000000..cf179a6
--- /dev/null
+++ b/examples/cat
@@ -0,0 +1,28 @@
+#!/bin/sh
+cat > /tmp/menu-stdin
+
+exit 0
+
+#In the good old days of menu-0 compatibility, one had to use:
+
+# #!/usr/bin/install-menu
+# #I need menu-1!
+#
+# #
+# #This file can be very usefull when you want to run one particular
+# #menu-method file several times, without running any of the others.
+# #In order to do so, do:
+# # - cp ./cat /etc/menu-methods/
+# # - run update-menus so that the "cat" menu-method gets executed.
+# # Now you've got /tmp/menu-stdin.
+# # - With this file, you don't need update-menus at all any more, and you
+# # can symply run your hand-written "menu-test" menu-method by typing:
+# # ./menu-test < /tmp/menu-stdin
+# #
+# # The advantage of doing this is
+# # - none of the other menu-method files get excecuted (speedup)
+# # - update-menus doesn't need to open some hundred menu-entry files
+# # every time you test a change in your menu-method file.
+# # (speedup)
+# compat="menu-1"
+# command="cat > /tmp/menu-stdin"