[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build alternatives (Re: Upgrade from sources)
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Build alternatives (Re: Upgrade from sources)
- From: Hannah Schroeter <hannah_(_at_)_schlund_(_dot_)_de>
- Date: Thu, 13 Mar 2003 18:14:26 +0100
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
- Organization: Schlund + Partner AG
Hello!
On Thu, Mar 13, 2003 at 12:06:45PM -0500, Chuck Yerkes wrote:
>[...]
>My thought leaned towards making a new flag for install and
>putting the logic in there.
>Easy:
> "if this file is newer than $(target), then install it.
>Better:
> "if not, are they different?
> (now run cheap checksum, same? run expensive checksum ala rsync)."
How about
cmp -s ${SOURCE_FILE} ${DESTINATION_FILE} ||
${INSTALL_PROGRAM} ${SOURCE_FILE} ${DESTINATION_FILE}
Kind regards,
Hannah.
Visit your host, monkey.org