aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorArsenShnurkov <ArsenShnurkov@users.noreply.github.com>2017-05-28 17:57:30 +0300
committerArsenShnurkov <ArsenShnurkov@users.noreply.github.com>2017-05-28 17:57:30 +0300
commit60e26cfc04cac4bd2ede6152483add005654602a (patch)
tree0bbbcee4c36bc64610a09e16fa8bbe325db4a398 /eclass
parentrename file (diff)
downloaddotnet-60e26cfc04cac4bd2ede6152483add005654602a.tar.gz
dotnet-60e26cfc04cac4bd2ede6152483add005654602a.tar.bz2
dotnet-60e26cfc04cac4bd2ede6152483add005654602a.zip
fix for nupkg.eclass
Diffstat (limited to 'eclass')
-rw-r--r--eclass/nupkg.eclass11
1 files changed, 6 insertions, 5 deletions
diff --git a/eclass/nupkg.eclass b/eclass/nupkg.eclass
index 9ba4be7..d038aeb 100644
--- a/eclass/nupkg.eclass
+++ b/eclass/nupkg.eclass
@@ -79,17 +79,18 @@ enuget_restore() {
# accepts path to .nuspec file as parameter
enuspec() {
if use nupkg; then
- if [ -n "${NUSPEC_PROPERTIES}" ]; then
- NUSPEC_PROPERTIES+=';'
+ local PROPS=${NUSPEC_PROPERTIES}
+ if [ -n "${PROPS}" ]; then
+ PROPS+=';'
fi
# see http://docs.nuget.org/create/nuspec-reference#specifying-files-to-include-in-the-package
# for the explaination why $configuration$ property is passed
if use debug; then
- NUSPEC_PROPERTIES+="configuration=Debug"
+ PROPS+="configuration=Debug"
else
- NUSPEC_PROPERTIES+="configuration=Release"
+ PROPS+="configuration=Release"
fi
- nuget pack -Properties "${NUSPEC_PROPERTIES}" -BasePath "${S}" -OutputDirectory "${WORKDIR}" -NonInteractive -Verbosity detailed "$@" || die
+ nuget pack -Properties "${PROPS}" -BasePath "${S}" -OutputDirectory "${WORKDIR}" -NonInteractive -Verbosity detailed "$@" || die
fi
}