~ubuntu-branches/ubuntu/feisty/wmmoonclock/feisty

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Martin A. Godisch
  • Date: 2007-04-01 19:30:02 UTC
  • Revision ID: james.westby@ubuntu.com-20070401193002-81eb383cvynu2fli
Tags: 1.27-22
Fixed postrm, closes: #417144.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
5
 
[ "$1" = configure ] || exit 0
6
 
 
7
 
. /usr/share/debconf/confmodule
8
 
 
9
 
args=""
10
 
umask 022
11
 
 
12
 
db_get wmmoonclock/latitude
13
 
if [ "$RET" ]; then
14
 
        args="$args -lat $RET"
15
 
fi
16
 
 
17
 
db_get wmmoonclock/longitude
18
 
if [ "$RET" ]; then
19
 
        args="$args -lon $RET"
20
 
fi
21
 
 
22
 
echo "?package(wmmoonclock):needs=\"X11\" section=\"Apps/Tools\" \\" > /etc/menu/wmmoonclock.new && \
23
 
echo "  title=\"wmMoonClock\" command=\"/usr/bin/wmMoonClock $args\"" >> /etc/menu/wmmoonclock.new
24
 
 
25
 
ucf --debconf-ok /etc/menu/wmmoonclock.new /etc/menu/wmmoonclock
26
 
rm -f /etc/menu/wmmoonclock.new
27
 
 
28
 
db_stop
29
 
 
30
 
if [ -x /usr/bin/update-menus ]; then
 
5
if [ "$1" = configure ] && [ -x /usr/bin/update-menus ]; then
31
6
        update-menus
32
7
fi
33
8