Re: [dev] Is there a reason to use install(1)?

From: Moritz Wilhelmy <crap_AT_wzff.de>
Date: Sat, 29 May 2010 23:46:05 +0200

> Very often I see makefile use install(1) when cp, mkdir, chmod, and
> Co. would be equally compact.

Consider

install -D -m755 -u foo -g bar foo.sh $DESTDIR/usr/bin

vs.

mkdir -p $DESTDIR/usr/bin
cp foo.sh $DESTDIR/usr/bin
chmod 755 $DESTDIR/usr/bin/foo.sh
chown foo:bar $DESTDIR/usr/bin/foo.sh

and tell me about "equally compact" again...
install has been there since one of the early BSD releases and has been adopted
from every UNIX(-clone) I am aware of.

Kind regards,

Moritz Wilhelmy
Received on Sat May 29 2010 - 21:46:05 UTC

This archive was generated by hypermail 2.2.0 : Sat May 29 2010 - 21:48:02 UTC