Re: [dev] [sbase] install
On Wed, Feb 03, 2016 at 08:10:50PM +0100, Mattias Andrée wrote:
> I don't really see the point of including install,
> but I assumed there would have been some consensus
> on what to features to include.
> None of implementations have the same flag set, and
> some have incompatible flag sets; and it does not
> bring any feature that the other utilities do not
> offer (some implementations have backup flags, but
> so does some cp implementations.)
>
> FreeBSD and GNU have some files in common are
> commonly used. I assumes these would be useful
> to make most makefiles working without modifying
> them:
>
> -d (mkdir -p)
> -g GID (select group)
> -o UID (select owner)
> -m MODE (select mode)
> -s (strip)
>
> (-g and -o are not too commonly used.)
>
> GNU install also has
>
> -D (create missing directories)
> -t DIR (copy all files into DIR)
>
> which are used in makefiles from time to time.
>
> Would anyone object if I implemented install
> with these and only these flags?
One can replace install with the following sequence of commands.
rm
mkdir
cp
chmod
chown
etc.
It is used widely enough in make targets that it is worth having
as a standalone command in sbase.
I think -d, -g, -o, -m, -s, -D and -t should be enough for an
initial implementation.
Received on Thu Feb 11 2016 - 11:21:05 CET
This archive was generated by hypermail 2.3.0
: Thu Feb 11 2016 - 11:24:09 CET