SetOutPath "-" works again

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3552 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-06-04 11:05:29 +00:00
parent 8031329c3d
commit 647d61ff24

View file

@ -3230,9 +3230,14 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
return add_entry(&ent);
case TOK_SETOUTPATH:
{
SCRIPT_MSG("SetOutPath: \"%s\"\n",line.gettoken_str(1));
char *op=line.gettoken_str(1);
if (!strcmp(op,"-"))
{
op="$INSTDIR";
}
SCRIPT_MSG("SetOutPath: \"%s\"\n",op);
ent.which=EW_CREATEDIR;
ent.offsets[0]=add_string(line.gettoken_str(1));
ent.offsets[0]=add_string(op);
ent.offsets[1]=1;
DefineInnerLangString(NLF_OUTPUT_DIR);