File: eclipse-rcp.postinst

package info (click to toggle)
eclipse 3.2.1-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 54,216 kB
  • ctags: 71
  • sloc: sh: 8,046; makefile: 496
file content (31 lines) | stat: -rw-r--r-- 737 bytes parent folder | download
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

if [ "$1" = "configure" ]; then
    DIRS="/usr/local/lib/eclipse \
          /usr/local/lib/eclipse/features \
          /usr/local/lib/eclipse/plugins"

    # Create empty directories in /usr/local
    for DIR in $DIRS; do
        if [ ! -e $DIR ]; then
            mkdir -p $DIR 2> /dev/null || true
            chmod 2775 $DIR 2> /dev/null || true
            chown root:staff $DIR 2> /dev/null || true
        fi
    done

    EXT=/usr/local/lib/eclipse/.eclipseextension

    #touch $EXT 2>/dev/null
    #chmod 2775 $EXT 2> /dev/null || true
    #chown root:staff $EXT 2> /dev/null || true

fi


# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0