~ubuntu-branches/ubuntu/oneiric/ncbi-tools6/oneiric

« back to all changes in this revision

Viewing changes to debian/makemenu

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-03-27 12:00:15 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050327120015-embhesp32nj73p9r
Tags: 6.1.20041020-3
* Fix FTBFS under GCC 4.0 caused by inconsistent use of "static" on
  functions.  (Closes: #295110.)
* Add a watch file, now that we can.  (Upstream's layout needs version=3.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
if [ "x$1" = "x-v" ]; then
3
3
    vibrate=true
4
 
    package=vibrant6
5
4
    shift
6
5
else
7
6
    vibrate=false
8
 
    package=`basename $1 .files`
9
 
fi
10
 
menu=`echo $1 | sed -e 's/files$/menu/'`
 
7
fi
 
8
package=`basename $1 .install`
 
9
if [ $vibrate = true ]; then
 
10
    package="libvibrant6,$package"
 
11
fi
 
12
menu=`echo $1 | sed -e 's/install$/menu/'`
11
13
while read command junk; do
12
14
    case $command in
13
15
        */bin/*) ;;
21
23
        */netentcf) title="Entrez net config" ;;
22
24
        *         ) title=`basename $command` ;;
23
25
    esac
24
 
    icondir=/usr/X11R6/include/X11/pixmaps
 
26
    icondir=/usr/share/pixmaps
25
27
    case $command in
26
28
        */asntool) icon=$icondir/asntool.xpm ;;
27
29
        *)         icon=$icondir/ncbilogo.xpm ;;
31
33
    fi
32
34
    cat <<EOF
33
35
?package($package):command="/$command" needs="X11" \\
34
 
        section="Apps/Technical" title="$title" hints="Biology" icon="$icon"
 
36
        section="Apps/Science" title="$title" hints="Biology" icon="$icon"
35
37
EOF
36
38
done < "$1" > "$menu"
37
39