Debian Codegraph @

debian/postinst

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 set -e
4
5 #DEBHELPER#
6
7 FC_BASE="/usr/share/fvwm-crystal/fvwmscip-shell filesystem . . `/usr/share/fvwm-crystal/fvwm`."
8 FC_ICONBASE="${FC_BASE}/icons/Default"
9 FC_APPBASE="${FC_BASE}/Applications/debian"
10
11 SIZES="22x22 32x32 48x48"
12
13 # versions 3.0-1 - 3.0.3-1 of the package put the debianmenu in
14 # /usr/share/fvwm-crystal. Since then the debian menu resides in
15 # /var/lib/fvwm-crystal. Since function removes the menu from the
16 # old location, if present, when upgrading to this version.
17 removeLegacyMenuscip-shell shell fvwm-crystal 3.4.1+dfsg-3 removeLegacyMenu().() {
18 if [scip-shell system . . `[`. ! -d "${FC_APPBASE}" ]; then return; fi
19 for size in ${SIZES}; do
20 if [scip-shell system . . `[`. ! -d "${FC_ICONBASE}/${size}/debianmenu/" ]; then
21 continue
22 fi
23 for file in `findscip-shell system . . find. ${FC_ICONBASE}/${size}/debianmenu/ -name "*.png"`; do
24 rmscip-shell system . . rm. -f -- "`readlinkscip-shell system . . readlink. "${file}"`"
25 rmscip-shell system . . rm. -f -- "${file}"
26 done
27 rmdirscip-shell system . . rmdir. --ignore-fail-on-non-empty "${FC_ICONBASE}/${size}/debianmenu/"
28 done
29 rmscip-shell system . . rm. -rf -- "${FC_APPBASE}"
30 }
31
32 removeLegacyMenuscip-shell shell fvwm-crystal 3.4.1+dfsg-3 removeLegacyMenu().
33
34 if [scip-shell system . . `[`. "$1" = "configure" ]; then
35 update-alternativesscip-shell system . . update-alternatives. --install scip-shell filesystem . . `/usr/bin/fvwm-crystal`./usr/bin/x-window-mscip-shell filesystem . . `/usr/bin/fvwm-crystal`.anagerscip-shell filesystem . . `/usr/bin/x-window-manager`. x-window-manager \
36 /usr/bin/fvwm-crystal 50 \
37 --slave /usr/share/man/man1/x-window-manager.1.gzscip-shell filesystem . . `/usr/share/man/man1/x-window-manager.1.gz`. \
38 x-window-manager.1.gz \scip-shell filesystem . . `/usr/share/man/man1/fvwm-crystal.1.gz`.
39 /usr/share/man/man1/fvwm-crystal.1.gz
40 fi
41