various suggestions for mr
Joey Hess
joey at kitenet.net
Sat Oct 29 18:52:01 CEST 2011
Adam Spiers wrote:
> I already did this; in fact I *had* to, in order to support GNU stow,
> which requires the stow package namespace to be the list of
> directories under a single "stow directory". If you look for
> $STOW_PKG_PATH in the code I originally posted, you'll see:
>
> STOW_DIR=$HOME/.cfg
> ...
> MR_NAME="`basename $MR_REPO`"
> ...
> STOW_PKG_PATH="$STOW_DIR/$MR_NAME"
>
> and then post_{checkout,update} call the install() function which
> does:
>
> ensure_symlink_exists "$STOW_PKG_PATH" "${MR_REPO%/}"
>
> However, the basename operation does not preserve the uniqueness
> property which $MR_REPO had, and that's why I say that we need an
> additional namespace.
So pick an operation that does? tr / _ would do, for example.
--
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.madduck.net/pipermail/vcs-home/attachments/20111029/af9dd2a6/attachment.pgp>
More information about the vcs-home
mailing list