ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/mod_python.spec
(Generate patch)

Comparing COMP/CMSDIST/mod_python.spec (file contents):
Revision 1.11 by eulisse, Wed Feb 27 11:14:13 2008 UTC vs.
Revision 1.12 by egeland, Thu Feb 28 14:29:37 2008 UTC

# Line 28 | Line 28 | EOF
28   mkdir -p %i/modules
29   mv $APACHE2_ROOT/modules/mod_python.so %i/modules
30  
31 + # Generates the dependencies-setup.{sh,csh} files so that
32 + # sourcing init.{sh,csh} picks up also the environment of
33 + # dependencies.
34 +
35 + rm -rf %i/etc/profile.d
36 + mkdir -p %i/etc/profile.d
37 + echo '#!/bin/sh' > %{i}/etc/profile.d/dependencies-setup.sh
38 + echo '#!/bin/tcsh' > %{i}/etc/profile.d/dependencies-setup.csh
39 + echo requiredtools `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'`
40 + for tool in `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'`
41 + do
42 +    case X$tool in
43 +        Xdistcc|Xccache )
44 +        ;;
45 +        * )
46 +            toolcap=`echo $tool | tr a-z- A-Z_`
47 +            eval echo ". $`echo ${toolcap}_ROOT`/etc/profile.d/init.sh" >> %{i}/etc/profile.d/dependencies-setup.sh
48 +            eval echo "source $`echo ${toolcap}_ROOT`/etc/profile.d/init.csh" >> %{i}/etc/profile.d/dependencies-setup.csh
49 +        ;;
50 +    esac
51 + done
52 +
53 + perl -p -i -e 's|\. /etc/profile\.d/init\.sh||' %{i}/etc/profile.d/dependencies-setup.sh
54 + perl -p -i -e 's|source /etc/profile\.d/init\.csh||' %{i}/etc/profile.d/dependencies-setup.csh
55 +
56 +
57   %post
58   %{relocateConfig}conf/mod_python.conf
59 + %{relocateConfig}etc/profile.d/dependencies-setup.sh
60 + %{relocateConfig}etc/profile.d/dependencies-setup.csh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines