X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=build%2Finstall-includes;h=1737b46ab59140d105d29ce8f811c931e805c4fa;hb=6a0d147c9fcec363172649425f76a71b5af8ffab;hp=1bf324834fd23e1fbdb61cbd4d6086cd710bfad7;hpb=bf26e57bfef82cc2041b7236fd9edea24b578ad3;p=libucw.git diff --git a/build/install-includes b/build/install-includes index 1bf32483..1737b46a 100755 --- a/build/install-includes +++ b/build/install-includes @@ -1,14 +1,14 @@ #!/bin/sh # A simple installer of include files -# (c) 2005 Martin Mares +# (c) 2005--2007 Martin Mares set -e SRC=$1 DEST=$2 shift 2 while [ -n "$1" ] ; do - if [ "$SRC/$1" -nt "$DEST/$1" ] ; then - echo "Copying $SRC/$1 to $DEST/$1" + if [ ! -f "$DEST/$1" -o "$SRC/$1" -nt "$DEST/$1" ] ; then + echo "INC $SRC/$1 -> $DEST/$1" mkdir -p $DEST/`dirname $1` cp $SRC/$1 $DEST/$1 fi