DragonFly BSD
DragonFly users List (threaded) for 2009-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: ${DESTDIR}/etc/$${f##*/} expression


From: Daniel Bond <db@xxxxxxxxxxxxxx>
Date: Fri, 6 Nov 2009 14:51:42 +0100

Hi,



On Nov 6, 2009, at 2:40 PM, Saifi Khan wrote:

Hi:

Can some of the experienced folks share how the following
_expression_ is evaluated

[ -e "${DESTDIR}/etc/$${f##*/}" ] || \

It removes everything in $f, upto the last "/" (forward slash):

db ~> f=/tmp/test                                   [s002@daniel-bonds-mac-pro]
db ~> echo ${f##*/}                                 [s002@daniel-bonds-mac-pro]
test

so it  checks if "${DESTDIR}/etc/<file>" exists

i'm keen to understand how the "amd64 -> x86_64" moniker is fed
to this _expression_ and evaluated.

For details, please see line 153 in /usr/src/etc/Makefile at
http://gitweb.dragonflybsd.org/dragonfly.git/blob/HEAD:/etc/Makefile

Any pointers ?


thanks
Saifi.




Cheers,

danny.

Attachment: PGP.sig
Description: This is a digitally signed message part



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