view install-dpi-local @ 562:145b8a4d65b3

tag -> element
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Wed, 12 Nov 2008 16:17:35 +0100
parents 6ee11bf9e3ea
children 210b6c9820b0
line wrap: on
line source
#!/bin/sh
#
# Install the dpi framework programs inside the user's account.
#

BASE="$HOME/.dillo"
BASE2="$BASE/dpi"

if [ -r $BASE/dpi_socket_dir ] ; then
   rm -r `cat $BASE/dpi_socket_dir`
   rm $BASE/dpi_socket_dir
fi

if [ ! -x dpid/dpid ] ; then
   echo "You MUST run this script after make."
   exit 1
fi

if [ ! -d $BASE ] ; then
  mkdir $BASE
fi
if [ ! -d $BASE2 ] ; then
  mkdir $BASE2
fi

cp dpid/dpid dpid/dpidc $BASE
strip $BASE/dpid

cd dpi
for F in *.dpi ; do
   D="`echo $F | sed 's/\..*$//'`"
   if [ ! -d $BASE2/$D ] ; then
      mkdir $BASE2/$D
   fi
   cp $F $BASE2/$D
   strip $BASE2/$D/$F
done
cd ..