# substitute the build path with the install path while read src dst do sed -e "s#@CLIENT_BASEDIR@#$CLIENT_BASEDIR#g" \ -e "s#@CBASEDIR@#$CBASEDIR#g" $src > $dst || exit 2 done exit 0