File: generate-menus

package info (click to toggle)
xemacs21 21.4.24-12
  • links: PTS
  • area: main
  • in suites: sid
  • size: 34,212 kB
  • sloc: ansic: 243,882; lisp: 94,071; cpp: 5,726; sh: 4,406; perl: 1,096; cs: 775; makefile: 765; python: 279; asm: 248; lex: 119; yacc: 95; sed: 22; csh: 9
file content (31 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

CLEAN=0

if test "$1" = "CLEAN" ; then
    shift
    CLEAN=1
fi

for i in $@ ; do
    if test "$CLEAN" = "1" ; then
        rm -f xemacs@MAJVERSION@@SUBNAME@-$i.menu.in
    else
        ( echo "?package(xemacs@MAJVERSION@-$i):\\"
          echo "  needs=\"X11\"\\"
          echo "  section=\"Applications/Editors\"\\"
          echo "  title=\"XEmacs@MAJVERSION@-$i\"\\"
          echo "  command=\"/usr/bin/xemacs@MAJVERSION@-$i\"\\"
          echo "  hints=\"Text\""
          echo ""
          echo "?package(xemacs@MAJVERSION@-$i):\\"
          echo "  needs=\"text\"\\"
          echo "  section=\"Applications/Editors\"\\"
          echo "  title=\"XEmacs@MAJVERSION@-$i\"\\"
          echo "  command=\"/usr/bin/xemacs@MAJVERSION@-$i -nw\"\\"
          echo "  hints=\"Text\""
          echo ""
        ) > xemacs@MAJVERSION@@SUBNAME@-$i.menu.in
    fi
done