~ubuntu-branches/ubuntu/quantal/ngraph-gtk/quantal

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /bin/sh

if [ $# -ne 7 ]
then
    echo "error: wrong number of arguments ($0)."
    exit
fi

BINDIR=$1
shift
DOCDIR=$1
shift
LIBDIR=$1
shift
DATADIR=$1
shift
CONFDIR=$1
shift
PIXMAPDIR=$1
shift

TARGET=`basename $1 .in`

cat $1 | sed -e "s!BINDIRDEF!$BINDIR!g" \
             -e "s!DOCDIRDEF!$DOCDIR!g" \
             -e "s!LIBDIRDEF!$LIBDIR!g" \
             -e "s!DATADIRDEF!$DATADIR!g" \
             -e "s!PIXMAPDIRDEF!$PIXMAPDIR!g" \
             -e "s!CONFDIRDEF!$CONFDIR!g" > $TARGET

echo $CONFDIR