[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build alternatives (Re: Upgrade from sources)



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.