[go: up one dir, main page]

Menu

[r270]: / etc / grk / e16.grk  Maximize  Restore  History

Download this file

93 lines (76 with data), 1.9 kB

#!/bin/sh
##
## e16.grk for ctafconf in /home/ctaf/.ctafconf/etc
##
## Made by GESTES Cedric
## Login   <ctaf42@gmail.com>
##
## Started on  Tue Apr 11 12:32:11 2006 GESTES Cedric
## Last update Mon Feb 19 08:00:08 2007 GESTES Cedric
##

#--function
#grk_link
#grk_unlink

#grk_sudolink
#grk_unsudolink

#grk_dir
#grk_undir

#grk_file
#grk_unfile


#grk_variable?
#grk_value?

#grk_testfile
#grk_testdir
#grk_testlink

#this package should be named e16.grk
e16_name='e16'

#dependance
#e16_depend='shell'

#description
e16_description()
{
  echo "This package contains configuration file for e16"
  echo "It a powerfull window manager (clickodrome)"
}



#is this package installed?
#0 = installed
#1 = not installed
e16_is_installed()
{
  grk_testdir ~/.enlightenment &&
  grk_testdir ~/.enlightenment/backgrounds &&
  grk_testfile etc/e16/user_theme.cfg ~/.enlightenment/user_theme.cfg &&
  grk_testfile etc/e16/file.menu ~/.enlightenment/file.menu &&
  grk_testlink perso/wallpaper ~/.enlightenment/backgrounds/persowallpp &&
  grk_testlink etc/wallpaper ~/.enlightenment/backgrounds/ctafconfwallpp
  return $?
}

#install this package if e16_is_installed return "not installed"
#0 = installed
#1 = not installed
e16_install()
{
  grk_dir ~/.enlightenment e16
    #no backup til now
  grk_dir ~/.enlightenment/backgrounds
  grk_file etc/e16/user_theme.cfg ~/.enlightenment/user_theme.cfg
  grk_file etc/e16/file.menu ~/.enlightenment/file.menu
  grk_link perso/wallpaper ~/.enlightenment/backgrounds/persowallpp
  grk_link etc/wallpaper ~/.enlightenment/backgrounds/ctafconfwallpp
  return 0
}

#uninstall file install with e16_install
e16_uninstall()
{
  grk_undir ~/.enlightenment e16
  return 0
}

#this function is always called when you call ct-installconf
#dont affected by e16_uninstall
#put all .mine there
e16_alwaysinstall()
{
    #grk_mine kshrc
    #nothing to do
  return 0
}