Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Apr 1995 21:52:15 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-hackers@freefall.cdrom.com, kargl@troutmask.apl.washington.edu
Subject:   Re: new install(1) utility
Message-ID:  <199504051152.VAA17966@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>I've rewritten install(1) to include the following options:

>(1)  -S -- Symlink are created instead of moving (copying) the file.

>(2)  -t -- Preserve the timestamp of the source file on target file.

I'd like these options:

      -T -- If source data == target data, then preserve target timestamp.
            Otherwise do the same as -t.

This is useful for avoiding changing target timestamps that other things
depend on.  E.g., for header files, the target timestamp should normally
be preserved if possible.

      -F -- if source timestamp == target timestamp, then do nothing.
            Otherwise do a full install and print a warning giving
            the source and target timestamps.

This is useful for rerunning `make install' on a large tree soon after
you've done a full install.  E.g., immediately after installing with
-t it would tell you if everything got installed with the correct
timestamps; immediately after installing with -T it would tell you if
there are too many or too old targets; a little later, after rebuilding
a few scattered targets, you might want to reinstall the whole tree
to avoid missing anything, and -F should be faster.

Perhaps there should be options:

      --timestamp-greatest -- set target timestamp to max(source, target)
                              timestamps.

      --timestamp-smallest -- if source data == target data, then set target
			      timestamp to min(source, target) timestamps.
                              Otherwise do the same as -t.

      -n -- don't actually install, but print what would be done without -n.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504051152.VAA17966>