5 prefix
=`echo $3 | sed 's/\/\//\//g'`
6 LIBDIR
=`echo $4 | sed 's/\/\//\//g'`
12 for d
in $prefix $LIBDIR; do
13 if [ ! -d $DESTDIR/$d ]; then
15 if [ ! -d $DESTDIR/$d ]; then
16 echo Failed to
make directory
$DESTDIR/$d
22 # We expect the last component of LIBDIR to be the module type, eg. idmap,
23 # pdb. By stripping this from the installation name, you can have multiple
24 # modules of the same name but different types by creating eg. idmap_foo
25 # and pdb_foo. This makes the most sense for idmap and pdb module, where
26 # they need to be consistent.
27 mtype
=`basename $LIBDIR`
31 name
=`echo $p2 | sed -es/${mtype}_//`
32 echo Installing
$p as
$DESTDIR/$LIBDIR/$name
33 cp -f $p $DESTDIR/$LIBDIR/$name
34 chmod $INSTALLPERMS $DESTDIR/$LIBDIR/$name