annotate build/solaris/adlc_updater @ 0:a61af66fc99e

Initial load
author duke
date Sat, 01 Dec 2007 00:00:00 +0000
parents
children
rev   line source
duke@0 1 #! /bin/sh
duke@0 2 #
duke@0 3 # This file is used by adlc.make to selectively update generated
duke@0 4 # adlc files. Because source and target diretories are relative
duke@0 5 # paths, this file is copied to the target build directory before
duke@0 6 # use.
duke@0 7 #
duke@0 8 # adlc-updater <file> <source-dir> <target-dir>
duke@0 9 #
duke@0 10 [ -f $3/$1 ] && cmp -s $2/$1 $3/$1 || \
duke@0 11 ( [ -f $3/$1 ]; echo Updating $3/$1 ; touch $2/made-change ; mv $2/$1 $3/$1 )