source: gs2-extensions/gnome-lib/trunk/src/devel.bash@ 23112

Last change on this file since 23112 was 23112, checked in by sjm84, 14 years ago

Removed some unnecessary code

File size: 1.3 KB
RevLine 
[22956]1#!/bin/bash
2
[23078]3if [ -d cascade-make ] ; then
[23096]4 source cascade-make/lib/cascade-lib.bash GEXTGNOME . $*
[23078]5fi
6
[22956]7if [ "x$GEXTGNOME_DEVEL" = "x" ] ; then
8 # Set environment variable so we can tell devel.bash has been sourced
9 export GEXTGNOME_DEVEL=$GEXTGNOME
10
11 export PATH="$GEXTGNOME_INSTALLED/bin:$PATH"
12 export CFLAGS="-I$GEXTGNOME_INSTALLED/include $CFLAGS"
13 export CPPFLAGS="-I$GEXTGNOME_INSTALLED/include $CPPFLAGS"
14 export CXXFLAGS="-I$GEXTGNOME_INSTALLED/include $CXXFLAGS"
15 export LDFLAGS="-L$GEXTGNOME_INSTALLED/lib $LDFLAGS"
16
[23076]17 echo "+Your environment is now setup to compile with the GNOME Support Library"
18
19 if [ -d "$GEXTGNOME_INSTALLED/lib/pkgconfig" ] ; then
20 echo ""
21 echo "+Testing that pkg-config is correctly configured..."
22
23 pushd $GEXTGNOME_INSTALLED/lib/pkgconfig
24
25 if [ ! -e .fixed-prefix.awk ] ; then
26
27 echo "Configuring ..."
28
29 echo "/^prefix=/ { print \"prefix=$GEXTGNOME_INSTALLED\" ; next }" > .fixed-prefix.awk
[23082]30 echo " { print \$0 }" >> .fixed-prefix.awk
[23076]31
32 for file in *.pc ; do
33 cat $file | awk -f .fixed-prefix.awk > $file.new && \
34 /bin/mv $file.new $file
35 done
36 echo "... done"
37 else
38 echo "No configuration needed"
39 fi
40
41 popd
42 fi
[22956]43else
[23076]44 echo "+Your environment is already setup to compile with the GNOME Support Library"
[22956]45fi
Note: See TracBrowser for help on using the repository browser.