~ubuntu-branches/debian/stretch/menu/stretch

« back to all changes in this revision

Viewing changes to examples/cat

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-02-15 23:01:02 UTC
  • Revision ID: james.westby@ubuntu.com-20020215230102-7j7wb86z0jmhbgy3
Tags: 2.1.5-10.1
NMU. Statically link menu on mips and mipsel to work around a
likely toolchain bug of some sort. sorta kinda Closes: #127921

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
cat > /tmp/menu-stdin
 
3
 
 
4
exit 0
 
5
 
 
6
#In the good old days of menu-0 compatibility, one had to use:
 
7
 
 
8
# #!/usr/sbin/install-menu
 
9
# #I need menu-1!
 
10
 
11
# #
 
12
# #This file can be very usefull when you want to run one particular
 
13
# #menu-method file several times, without running any of the others.
 
14
# #In order to do so, do:
 
15
# #  - cp ./cat /etc/menu-methods/
 
16
# #  - run update-menus so that the "cat" menu-method gets executed. 
 
17
# #    Now you've got /tmp/menu-stdin.
 
18
# #  - With this file, you don't need update-menus at all any more, and you
 
19
# #     can symply run your hand-written "menu-test" menu-method by typing:
 
20
# #     ./menu-test < /tmp/menu-stdin
 
21
# #
 
22
# # The advantage of doing this is
 
23
# #   - none of the other menu-method files get excecuted (speedup)
 
24
# #   - update-menus doesn't need to open some hundred menu-entry files
 
25
# #     every time you test a change in your menu-method file.
 
26
# #     (speedup)
 
27
# compat="menu-1"
 
28
# command="cat > /tmp/menu-stdin"