2 # --- T2-COPYRIGHT-NOTE-BEGIN ---
3 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
5 # T2 SDE: misc/tail/install_desktop.in
6 # Copyright (C) 2004 - 2005 The T2 SDE Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 # Register a window-manager
19 local regdir
=usr
/share
/rock-registry
20 [ -e $root/$regdir/wm
] || mkdir
-p $root/$regdir/wm
22 cat <<-EOT > "$root/$regdir/wm/$1"
28 # Register an application
30 register_application
() {
31 local regdir
=usr
/share
/rock-registry
32 [ -e $root/$regdir/app
] || mkdir
-p $root/$regdir/app
34 cat <<-EOT > "$root/$regdir/app/$1"
40 # Register a xdm - display manager
43 local regdir
=usr
/share
/rock-registry
44 [ -e $root/$regdir/xdm
] || mkdir
-p $root/$regdir/xdm
46 cat <<-EOT > "$root/$regdir/xdm/$1"
53 local file="$1" regdir
=usr
/share
/rock-registry
54 [ -e $root/$regdir/app
] || mkdir
-p $root/$regdir/app
56 echo "Installing ${file##*/} ..."
57 sde_substitute
$file > $root/$regdir/${file##*/}
60 for y
in $
( ls -1 $confdir/*.desktop
2> /dev
/null
); do
61 hook_add postinstall
6 "install_desktop '$y'"