ports/151414: Add 'work' when WRKDIRPREFIX is used.

Anonymous swell.k at gmail.com
Wed Oct 13 05:20:09 UTC 2010


The following reply was made to PR ports/151414; it has been noted by GNATS.

From: Anonymous <swell.k at gmail.com>
To: David O'Brien <obrien at FreeBSD.org>
Cc: bug-followup at FreeBSD.org
Subject: Re: ports/151414: Add 'work' when WRKDIRPREFIX is used.
Date: Wed, 13 Oct 2010 09:07:07 +0400

 "David O'Brien" <obrien at FreeBSD.org> writes:
 
 > It can be a lot of typing to enter a ports's extracted directory
 > if WRKDIRPREFIX is used.  In addition to the extra typing, one
 > must remember the value of WRKDIRPREFIX - which could be set
 > differently depending on where scratch space is available.
 
 FYI, you can also use shell aliases
 
   $ alias cdw='cd $(make -V WRKDIR)'
   /usr/ports/editors/vim $ cdw
   /tmp/usr/ports/editors/vim/work $ cd -
   /usr/ports/editors/vim $
 
 or search through command history[1] for `cd $(make -V WRKDIR)' +
 return to origin directory via `cd' or `popd'. For example (zsh),
 
   $ setopt autopushd pushdminus
   $ cd category/port
   $ make patch
   $ cd $(make -V WRKSRC)
   $ ls
   $ cd path/to/blah
   $ ls
   $ editor sourcefile.c
   $ cd -
   $ diff path/to/blah/sourcefile.c{.bak,} >~-2/files/patch-sourcefile.c
   $ cd -2
   $ make
 
 [1] either history-incremental-search-backward
     or     history-search-backward



More information about the freebsd-ports-bugs mailing list