From 647d61ff24cbf99af7dbb681d4f70dd1d7fedbb5 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 4 Jun 2004 11:05:29 +0000 Subject: [PATCH] SetOutPath "-" works again git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3552 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Source/script.cpp b/Source/script.cpp index ceec8958..31354f01 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -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);