summaryrefslogtreecommitdiff
path: root/package/debian/twm.menu-method
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2020-06-16 20:25:31 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2020-06-16 20:25:31 -0400
commit60bbd1b24a640e26a3f71f8eb35b5c031642a5e5 (patch)
treebddc4fa7905fb008e48f66eadb1fd2cb4672a7e2 /package/debian/twm.menu-method
parent08f44086320c6bc5f2c7eb6457a0d53192832805 (diff)
use Debian's package-files as starting point for test-packages
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'package/debian/twm.menu-method')
-rw-r--r--package/debian/twm.menu-method37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/debian/twm.menu-method b/package/debian/twm.menu-method
new file mode 100644
index 0000000..d3dbaae
--- /dev/null
+++ b/package/debian/twm.menu-method
@@ -0,0 +1,37 @@
+#!/usr/bin/install-menu
+
+# -*- mode: shell-script; -*-
+#I need menu-1!
+#
+#NOTE: the first line of this script _must_ be
+# equal to "#!/usr/sbin/install-menu", otherwise update-menus
+# will feed this script old-compat-mode data.
+#
+#More info: /usr/doc/menu/html.
+#
+compat="menu-1"
+
+!include menu.h
+
+compat="menu-2"
+outputencoding="ASCII";
+
+function q($com)=esc($com,"\"");
+function f($com)=" \"" q(title()) "\" f.exec \"" q($com) " &\"\n";
+
+supported;
+ x11= f($command);
+ text=f(term());
+ wm=" \"" q(title()) "\" f.startwm \"" q($command) "\"\n";
+# x11 = " \"" $title "\" f.exec \""$command " &\"\n";
+# text= " \"" $title "\" f.exec \"xterm -title \\\""
+# $title "\\\" -e " esc($command,"\"") " &\"\n";
+endsupported;
+startmenu= "menu \"" q($section) "\"\n{\n";
+endmenu= "}\n";
+submenutitle=" \"" q(title()) "\" f.menu \"" q($section) "\"\n";
+genmenu= "menudefs.hook";
+rcfile= "system.twmrc";
+examplercfile="system.twmrc-menu";
+rootprefix= "/etc/X11/twm/";
+userprefix= "/.twm/";