annotate install-dpi-local @ 2048:5060d415a85a

clickable menu items (even those introducing submenus) MUST have callbacks I clicked on the "Panel size" item itself instead of any of the options in its submenu, and: Segfault!
author corvid <corvid@lavabit.com>
date Thu, 26 May 2011 02:51:18 +0000
parents 6b3e3782d258
children
rev   line source
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
1 #!/bin/sh
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
2 #
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
3 # Install the dpi framework programs inside the user's account.
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
4 #
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
5
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
6 BASE="$HOME/.dillo"
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
7 BASE2="$BASE/dpi"
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
8
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
9 if [ -r $BASE/dpi_socket_dir ] ; then
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
10 rm -r `cat $BASE/dpi_socket_dir`
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
11 rm $BASE/dpi_socket_dir
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
12 fi
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
13
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
14 if [ ! -x dpid/dpid ] ; then
1536
6b3e3782d258 install-dpi-local try a 'dpidc stop' to stop running dpid.
corvid <corvid@lavabit.com>
parents: 1534
diff changeset
15 echo "This script may only be run AFTER make."
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
16 exit 1
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
17 fi
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
18
1536
6b3e3782d258 install-dpi-local try a 'dpidc stop' to stop running dpid.
corvid <corvid@lavabit.com>
parents: 1534
diff changeset
19 # Try to communicate with any currently-running dpid to tell it
6b3e3782d258 install-dpi-local try a 'dpidc stop' to stop running dpid.
corvid <corvid@lavabit.com>
parents: 1534
diff changeset
20 # to stop itself and the dpi programs.
6b3e3782d258 install-dpi-local try a 'dpidc stop' to stop running dpid.
corvid <corvid@lavabit.com>
parents: 1534
diff changeset
21 dpidc stop
6b3e3782d258 install-dpi-local try a 'dpidc stop' to stop running dpid.
corvid <corvid@lavabit.com>
parents: 1534
diff changeset
22
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
23 if [ ! -d $BASE ] ; then
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
24 mkdir $BASE
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
25 fi
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
26 if [ ! -d $BASE2 ] ; then
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
27 mkdir $BASE2
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
28 fi
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
29
1534
985d33e1da88 install-dpi-local cp dpidrc
corvid <corvid@lavabit.com>
parents: 1533
diff changeset
30 cp dpid/dpid dpid/dpidc dpid/dpidrc $BASE
1533
210b6c9820b0 install-dpi-local strip dpidc
corvid <corvid@lavabit.com>
parents: 0
diff changeset
31 strip $BASE/dpid $BASE/dpidc
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
32
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
33 cd dpi
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
34 for F in *.dpi ; do
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
35 D="`echo $F | sed 's/\..*$//'`"
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
36 if [ ! -d $BASE2/$D ] ; then
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
37 mkdir $BASE2/$D
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
38 fi
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
39 cp $F $BASE2/$D
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
40 strip $BASE2/$D/$F
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
41 done
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
42 cd ..
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
43