* updated korganizer (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / misc / tail / install_postinstall.in
blob55c8f4a3aa20f1a07021a444c7b7428ceecda658
1 #!/bin/sh
2 # --- T2-COPYRIGHT-NOTE-BEGIN ---
3 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 #
5 # T2 SDE: misc/tail/install_postinstall.in
6 # Copyright (C) 2004 - 2005 The T2 SDE Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
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 tail_postinstall_wrapper=sde_substitute
18 auto_install_postinstall() {
19 local pitpl= pidir=$root/etc/postinstall.d
20 for pitpl in $( cd $confdir; ls -1 *.postinstall 2> /dev/null ); do
21 echo "Installing ${pitpl%.postinstall} postinstall script..."
22 eval "cat $confdir/$pitpl | \
23 ${tail_postinstall_wrapper//|/ | } \
24 > $pidir/${pitpl%.postinstall}"
25 chmod +x $pidir/${pitpl%.postinstall}
26 done
29 hook_add postinstall 4 'auto_install_postinstall'