K 10 svn:author V 5 krion K 8 svn:date V 27 2006-01-10T22:17:08.000000Z K 7 svn:log V 798 MFC: add/extract.c:1.44 create/perform.c:1.82 create/pkg_create.1:1.70 create/pl.c:1.28 info/show.c:1.40 lib/plist.c:1.51 date: 2006/01/07 22:10:57; author: krion; state: Exp; lines: +10 -3 When using @cwd %%FOO%%, we must ensure to return in the original prefix later, but doing so with @cwd %%OLDPREFIX%% (having PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing list. That's not really a problem when dealing with ports but that's a problem with packages since pkg_add -p option only overrides the first @cwd occurrence. This patch allow us to use @cwd without any argument. If no directory argument is given, it will set current working directory to the first prefix given by the @cwd command. PR: bin/77212 Submitted by: flz END