]> git.pld-linux.org Git - packages/fvwm-themes-base.git/commitdiff
25dd1ab1cb8b96b7d7787df14b92053a fvwm-themes-base-0.6.0.tar.gz
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 9 Jun 2002 20:31:55 +0000 (20:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
2409c434c2ff079c917b394cc47ede24  fvwm-themes-base-install-menu-system.sh
cd15c2d62f8518769ecbf9f16383de30  fvwm-themes-base-rpm-wa.tar.gz

Changed files:
    fvwm-themes-base-install-menu-system.sh -> 1.1

fvwm-themes-base-install-menu-system.sh [new file with mode: 0644]

diff --git a/fvwm-themes-base-install-menu-system.sh b/fvwm-themes-base-install-menu-system.sh
new file mode 100644 (file)
index 0000000..6ff2675
--- /dev/null
@@ -0,0 +1,57 @@
+#!/bin/sh
+# A workaround script so that the rpm can install or not
+# the fvwm themes Debian menu system stuff
+
+DO="$1"
+MY_PWD=/usr/share/fvwm/menu-system
+MM_CONF_DIR=/etc/menu-methods
+WM_SESION_DIR=/etc/X11/wmsession.d
+FILES="fvwm_themes.h fvwm_themes fvwm_themes_data.h"
+
+if test ! -d $MY_PWD; then
+    exit 0
+fi
+
+cd $MY_PWD
+
+if test ! -d /etc/menu-methods -o ! -x /usr/bin/update-menus; then
+       DO=""
+fi
+
+if test "x$DO" = "xInstall"; then
+       tar xzf rpm-wa.tar.gz
+       for f in $FILES; do
+               cp -f rpm-wa/$f $MM_CONF_DIR/
+               rm -f rpm-wa/$f
+       done
+       chmod +x $MM_CONF_DIR/fvwm_themes
+       rmdir rpm-wa
+       /usr/bin/update-menus
+elif test "x$DO" = "xUninstall"; then 
+        for f in $FILES; do
+               rm -f $MM_CONF_DIR/$f
+       done
+       rm -f ft-menu
+       /usr/bin/update-menus
+fi
+
+# take the occasion to handle the wmsession.d directory
+if test ! -d $WM_SESION_DIR; then
+       exit 0
+fi
+
+if test "x$DO" = "xInstall"; then
+       echo "NAME=fvwm-themes
+DESC=FVWM Themes
+EXEC=/usr/bin/fvwm-themes-start
+SCRIPT:
+if test -x $HOME/.xinitrc-fvwm; then
+       . $HOME/.xinitrc-fvwm
+fi
+exec fvwm-themes-start"> $WM_SESION_DIR/fvwm-themes
+       [ -x /usr/sbin/fndSession ] && /usr/sbin/fndSession || true
+elif test "x$DO" = "xUninstall"; then
+       rm -f $WM_SESION_DIR/fvwm-themes
+       [ -x /usr/sbin/fndSession ] && /usr/sbin/fndSession || true
+fi
+
This page took 0.096401 seconds and 4 git commands to generate.