commit: a711cb20aecc680d13794d3df0590236efaeb73f
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Tue Aug 16 22:15:08 2016 +0000
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Tue Aug 16 22:15:08 2016 +0000
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=a711cb20
changes to .nuspec modification
.../Open-NAT/Open-NAT-1.0.0-r201510290.ebuild | 13 ++++---
.../commandlineparser-0.6.0_p20160115.ebuild | 17 +++++----
.../deveel-math-1.5.66-r201512290.ebuild | 33 +++++++++---------
.../deveeldb-2.0_pre_alpha_p20160101.ebuild | 29 ++++++++--------
.../dryioc/dryioc-2.1.0_p201512110-r1.ebuild | 34 +++++++++---------
.../irony-framework-1.0.0_p20131212-r1.ebuild | 34 +++++++++---------
.../monotorrent-1.0.0-r201510130.ebuild | 40 +++++++++++-----------
.../newtonsoft-json/newtonsoft-json-6.0.8.ebuild | 15 ++++----
.../newtonsoft-json-7.0.1_p20150831.ebuild | 15 ++++----
.../newtonsoft-json-8.0.1_p20151229.ebuild | 15 ++++----
dev-dotnet/npgsql/npgsql-3.1.6.ebuild | 15 ++++----
.../x-pagedlist-1.24.0.23549-r201512120.ebuild | 35 +++++++++----------
dev-util/nunit/build.sh | 4 ---
13 files changed, 141 insertions(+), 158 deletions(-)
diff --git a/dev-dotnet/Open-NAT/Open-NAT-1.0.0-r201510290.ebuild
b/dev-dotnet/Open-NAT/Open-NAT-1.0.0-r201510290.ebuild
index d761c11..8389688 100644
--- a/dev-dotnet/Open-NAT/Open-NAT-1.0.0-r201510290.ebuild
+++ b/dev-dotnet/Open-NAT/Open-NAT-1.0.0-r201510290.ebuild
@@ -80,15 +80,14 @@ patch_nuspec_file()
else
DIR="Release"
fi
- FILES_STRING=`cat <<-EOF || die "files at patch_nuspec_file()"
- <files> <!--
https://docs.nuget.org/create/nuspec-reference -->
- <file src="${OUTPUT_DIR}/${DIR}/*.dll"
target="lib\net45\" />
- <file src="${OUTPUT_DIR}/${DIR}/*.mdb"
target="lib\net45\" />
- </files>
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping
replacement string characters"
+ <files> <!-- https://docs.nuget.org/create/nuspec-reference
-->
+ <file src="${OUTPUT_DIR}/${DIR}/*.dll" target="lib\net45\"
/>
+ <file src="${OUTPUT_DIR}/${DIR}/*.mdb" target="lib\net45\"
/>
+ </files>
EOF
`
- einfo ${FILES_STRING}
- sed -i 's#</package>#${FILES_STRING}</package>#' $1 || die
"replace at patch_nuspec_file()"
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g'
$1 || die "escaping line endings"
fi
}
diff --git
a/dev-dotnet/commandlineparser/commandlineparser-0.6.0_p20160115.ebuild
b/dev-dotnet/commandlineparser/commandlineparser-0.6.0_p20160115.ebuild
index 8e53947..35afbe2 100644
--- a/dev-dotnet/commandlineparser/commandlineparser-0.6.0_p20160115.ebuild
+++ b/dev-dotnet/commandlineparser/commandlineparser-0.6.0_p20160115.ebuild
@@ -14,7 +14,7 @@ USE_DOTNET="net45"
# pkg-config = register in pkg-config database
IUSE="${USE_DOTNET} debug test +developer +aot +nupkg +gac +pkg-config"
-inherit nupkg
+inherit gac nupkg
HOMEPAGE="https://github.com/mgrosperrin/commandlineparser/releases"
DESCRIPTION="command line parser on System.ComponentModel.DataAnnotations"
@@ -190,14 +190,13 @@ patch_nuspec_file()
else
DIR="Release"
fi
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file
src="src/MGR.CommandLineParser/bin/${DIR}/MGR.CommandLineParser.*"
target="lib\net45\" />
- </files>
-EOF
-`
- einfo ${FILES_STRING}
- sed -i 's#</package>#${FILES_STRING}</package>#' $1 || die
"replace at patch_nuspec_file()"
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping
replacement string characters"
+ <files> <!-- https://docs.nuget.org/create/nuspec-reference
-->
+ <file
src="src/MGR.CommandLineParser/bin/${DIR}/MGR.CommandLineParser.*"
target="lib\net45\" />
+ </files>
+ EOF
+ `
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g'
$1 || die "escaping line endings"
fi
}
diff --git a/dev-dotnet/deveel-math/deveel-math-1.5.66-r201512290.ebuild
b/dev-dotnet/deveel-math/deveel-math-1.5.66-r201512290.ebuild
index 59cfd1d..0974881 100644
--- a/dev-dotnet/deveel-math/deveel-math-1.5.66-r201512290.ebuild
+++ b/dev-dotnet/deveel-math/deveel-math-1.5.66-r201512290.ebuild
@@ -121,25 +121,24 @@ patch_nuspec_file()
if use nupkg; then
if use debug; then
DIR="Debug"
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file src="src/Deveel.Math/bin/AnyCPU/${DIR}/Deveel.Math.dll"
target="lib\net45\" />
- <file
src="src/Deveel.Math/bin/AnyCPU/${DIR}/Deveel.Math.dll.mdb" target="lib\net45\"
/>
- </files>
-EOF
-`
- else
- DIR="Release"
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file src="src/Deveel.Math/bin/AnyCPU/${DIR}/Deveel.Math.dll"
target="lib\net45\" />
- </files>
-EOF
-`
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die
"escaping replacement string characters"
+ <files> <!--
https://docs.nuget.org/create/nuspec-reference -->
+ <file
src="src/Deveel.Math/bin/AnyCPU/${DIR}/Deveel.Math.dll" target="lib\net45\" />
+ <file
src="src/Deveel.Math/bin/AnyCPU/${DIR}/Deveel.Math.dll.mdb" target="lib\net45\"
/>
+ </files>
+ EOF
+ `
+ else
+ DIR="Release"
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die
"escaping replacement string characters"
+ <files> <!--
https://docs.nuget.org/create/nuspec-reference -->
+ <file
src="src/Deveel.Math/bin/AnyCPU/${DIR}/Deveel.Math.dll" target="lib\net45\" />
+ </files>
+ EOF
+ `
fi
- einfo ${FILES_STRING}
- sed -i 's#</package>#${FILES_STRING}</package>#' $1 || die
"replace at patch_nuspec_file()"
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g'
$1 || die "escaping line endings"
fi
}
diff --git a/dev-dotnet/deveeldb/deveeldb-2.0_pre_alpha_p20160101.ebuild
b/dev-dotnet/deveeldb/deveeldb-2.0_pre_alpha_p20160101.ebuild
index 1c65462..46548c5 100644
--- a/dev-dotnet/deveeldb/deveeldb-2.0_pre_alpha_p20160101.ebuild
+++ b/dev-dotnet/deveeldb/deveeldb-2.0_pre_alpha_p20160101.ebuild
@@ -180,25 +180,24 @@ patch_nuspec_file()
if use nupkg; then
if use debug; then
DIR="Debug"
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file src="src/deveeldb/bin/${DIR}/deveeldb.dll"
target="lib\net45\" />
- <file src="src/deveeldb/bin/${DIR}/deveeldb.dll.mdb"
target="lib\net45\" />
- </files>
-EOF
-`
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die
"escaping replacement string characters"
+ <files> <!--
https://docs.nuget.org/create/nuspec-reference -->
+ <file src="src/deveeldb/bin/${DIR}/deveeldb.dll"
target="lib\net45\" />
+ <file
src="src/deveeldb/bin/${DIR}/deveeldb.dll.mdb" target="lib\net45\" />
+ </files>
+ EOF
+ `
else
DIR="Release"
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file src="src/deveeldb/bin/${DIR}/deveeldb.dll"
target="lib\net45\" />
- </files>
-EOF
-`
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die
"escaping replacement string characters"
+ <files> <!--
https://docs.nuget.org/create/nuspec-reference -->
+ <file src="src/deveeldb/bin/${DIR}/deveeldb.dll"
target="lib\net45\" />
+ </files>
+ EOF
+ `
fi
- einfo ${FILES_STRING}
- sed -i 's#</package>#${FILES_STRING}</package>#' $1 || die
"replace at patch_nuspec_file()"
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g'
$1 || die "escaping line endings"
fi
}
diff --git a/dev-dotnet/dryioc/dryioc-2.1.0_p201512110-r1.ebuild
b/dev-dotnet/dryioc/dryioc-2.1.0_p201512110-r1.ebuild
index 94cb538..1acc73d 100644
--- a/dev-dotnet/dryioc/dryioc-2.1.0_p201512110-r1.ebuild
+++ b/dev-dotnet/dryioc/dryioc-2.1.0_p201512110-r1.ebuild
@@ -126,25 +126,23 @@ patch_nuspec_file()
if use nupkg; then
if use debug; then
DIR="Debug"
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file src="bin/${DIR}/DryIoc.dll" target="lib\net45\" />
- <file src="bin/${DIR}/DryIoc.dll.mdb" target="lib\net45\" />
- </files>
-EOF
-`
- else
- DIR="Release"
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file src="bin/${DIR}/DryIoc.dll" target="lib\net45\" />
- </files>
-EOF
-`
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die
"escaping replacement string characters"
+ <files> <!--
https://docs.nuget.org/create/nuspec-reference -->
+ <file src="bin/${DIR}/DryIoc.dll"
target="lib\net45\" />
+ <file src="bin/${DIR}/DryIoc.dll.mdb"
target="lib\net45\" />
+ </files>
+ EOF
+ `
+ else
+ DIR="Release"
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die
"escaping replacement string characters"
+ <files> <!--
https://docs.nuget.org/create/nuspec-reference -->
+ <file src="bin/${DIR}/DryIoc.dll"
target="lib\net45\" />
+ </files>
+ EOF
+ `
fi
-
- einfo ${FILES_STRING}
- sed -i 's#</package>#${FILES_STRING}</package>#' $1 || die
"replace at patch_nuspec_file()"
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g'
$1 || die "escaping line endings"
fi
}
diff --git
a/dev-dotnet/irony-framework/irony-framework-1.0.0_p20131212-r1.ebuild
b/dev-dotnet/irony-framework/irony-framework-1.0.0_p20131212-r1.ebuild
index cfea8d2..9a44870 100644
--- a/dev-dotnet/irony-framework/irony-framework-1.0.0_p20131212-r1.ebuild
+++ b/dev-dotnet/irony-framework/irony-framework-1.0.0_p20131212-r1.ebuild
@@ -71,25 +71,23 @@ epatch_nuspec_file()
if use nupkg; then
if use debug; then
DIR="Debug"
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file src="Irony/bin/${DIR}/Irony.dll" target="lib\net45\" />
- <file src="Irony/bin/${DIR}/Irony.dll.mdb" target="lib\net45\"
/>
- </files>
-EOF
-`
- else
- DIR="Release"
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file src="Irony/bin/${DIR}/Irony.dll" target="lib\net45\" />
- </files>
-EOF
-`
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die
"escaping replacement string characters"
+ <files> <!--
https://docs.nuget.org/create/nuspec-reference -->
+ <file src="Irony/bin/${DIR}/Irony.dll"
target="lib\net45\" />
+ <file src="Irony/bin/${DIR}/Irony.dll.mdb"
target="lib\net45\" />
+ </files>
+ EOF
+ `
+ else
+ DIR="Release"
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die
"escaping replacement string characters"
+ <files> <!--
https://docs.nuget.org/create/nuspec-reference -->
+ <file src="Irony/bin/${DIR}/Irony.dll"
target="lib\net45\" />
+ </files>
+ EOF
+ `
fi
-
- einfo ${FILES_STRING}
- sed -i 's#</package>#${FILES_STRING}</package>#' $1 || die
"replace at patch_nuspec_file()"
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g'
$1 || die "escaping line endings"
fi
}
diff --git a/dev-dotnet/monotorrent/monotorrent-1.0.0-r201510130.ebuild
b/dev-dotnet/monotorrent/monotorrent-1.0.0-r201510130.ebuild
index fd15cb0..27a567d 100644
--- a/dev-dotnet/monotorrent/monotorrent-1.0.0-r201510130.ebuild
+++ b/dev-dotnet/monotorrent/monotorrent-1.0.0-r201510130.ebuild
@@ -87,26 +87,26 @@ create_nuspec_file()
else
DIR="Release"
fi
- cat <<EOF >$1 || die
-<?xml version="1.0"?>
-<package>
- <metadata>
- <id>${PN}</id>
- <version>${NUGET_VERSION}</version>
- <authors>unknown</authors>
- <owners>unknown</owners>
- <licenseUrl>${LICENSE_URL}</licenseUrl>
- <projectUrl>${HOMEPAGE}</projectUrl>
- <iconUrl>${ICON_URL}</iconUrl>
- <requireLicenseAcceptance>false</requireLicenseAcceptance>
- <description>${DESCRIPTION}</description>
- </metadata>
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file src="build/MonoTorrent/${DIR}/*.dll" target="lib\net45\"
/>
- <file src="build/MonoTorrent/${DIR}/*.mdb" target="lib\net45\"
/>
- </files>
-</package>
-EOF
+ cat <<-EOF >$1 || die
+ <?xml version="1.0"?>
+ <package>
+ <metadata>
+ <id>${PN}</id>
+ <version>${NUGET_VERSION}</version>
+ <authors>unknown</authors>
+ <owners>unknown</owners>
+ <licenseUrl>${LICENSE_URL}</licenseUrl>
+ <projectUrl>${HOMEPAGE}</projectUrl>
+ <iconUrl>${ICON_URL}</iconUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>${DESCRIPTION}</description>
+ </metadata>
+ <files> <!-- https://docs.nuget.org/create/nuspec-reference
-->
+ <file src="build/MonoTorrent/${DIR}/*.dll"
target="lib\net45\" />
+ <file src="build/MonoTorrent/${DIR}/*.mdb"
target="lib\net45\" />
+ </files>
+ </package>
+ EOF
fi
}
diff --git a/dev-dotnet/newtonsoft-json/newtonsoft-json-6.0.8.ebuild
b/dev-dotnet/newtonsoft-json/newtonsoft-json-6.0.8.ebuild
index 0eea1a8..6edd220 100644
--- a/dev-dotnet/newtonsoft-json/newtonsoft-json-6.0.8.ebuild
+++ b/dev-dotnet/newtonsoft-json/newtonsoft-json-6.0.8.ebuild
@@ -118,14 +118,13 @@ patch_nuspec_file()
else
DIR="Release"
fi
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file
src="Src/Newtonsoft.Json/bin/${DIR}/Net45/Newtonsoft.Json.*"
target="lib\net45\" />
- </files>
-EOF
-`
- einfo ${FILES_STRING}
- sed -i 's#</package>#${FILES_STRING}</package>#' $1 || die
"replace at patch_nuspec_file()"
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping
replacement string characters"
+ <files> <!-- https://docs.nuget.org/create/nuspec-reference
-->
+ <file
src="Src/Newtonsoft.Json/bin/${DIR}/Net45/Newtonsoft.Json.*"
target="lib\net45\" />
+ </files>
+ EOF
+ `
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g'
$1 || die "escaping line endings"
fi
}
diff --git a/dev-dotnet/newtonsoft-json/newtonsoft-json-7.0.1_p20150831.ebuild
b/dev-dotnet/newtonsoft-json/newtonsoft-json-7.0.1_p20150831.ebuild
index 719298c..7272c8f 100644
--- a/dev-dotnet/newtonsoft-json/newtonsoft-json-7.0.1_p20150831.ebuild
+++ b/dev-dotnet/newtonsoft-json/newtonsoft-json-7.0.1_p20150831.ebuild
@@ -117,14 +117,13 @@ patch_nuspec_file()
else
DIR="Release"
fi
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file
src="Src/Newtonsoft.Json/bin/${DIR}/Net45/Newtonsoft.Json.*"
target="lib\net45\" />
- </files>
-EOF
-`
- einfo ${FILES_STRING}
- sed -i 's#</package>#${FILES_STRING}</package>#' $1 || die
"replace at patch_nuspec_file()"
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping
replacement string characters"
+ <files> <!-- https://docs.nuget.org/create/nuspec-reference
-->
+ <file
src="Src/Newtonsoft.Json/bin/${DIR}/Net45/Newtonsoft.Json.*"
target="lib\net45\" />
+ </files>
+ EOF
+ `
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g'
$1 || die "escaping line endings"
fi
}
diff --git a/dev-dotnet/newtonsoft-json/newtonsoft-json-8.0.1_p20151229.ebuild
b/dev-dotnet/newtonsoft-json/newtonsoft-json-8.0.1_p20151229.ebuild
index 5da40ee..73aa3d5 100644
--- a/dev-dotnet/newtonsoft-json/newtonsoft-json-8.0.1_p20151229.ebuild
+++ b/dev-dotnet/newtonsoft-json/newtonsoft-json-8.0.1_p20151229.ebuild
@@ -117,14 +117,13 @@ patch_nuspec_file()
else
DIR="Release"
fi
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file
src="Src/Newtonsoft.Json/bin/${DIR}/Net45/Newtonsoft.Json.*"
target="lib\net45\" />
- </files>
-EOF
-`
- einfo ${FILES_STRING}
- sed -i 's#</package>#${FILES_STRING}</package>#' $1 || die
"replace at patch_nuspec_file()"
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping
replacement string characters"
+ <files> <!-- https://docs.nuget.org/create/nuspec-reference
-->
+ <file
src="Src/Newtonsoft.Json/bin/${DIR}/Net45/Newtonsoft.Json.*"
target="lib\net45\" />
+ </files>
+ EOF
+ `
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g'
$1 || die "escaping line endings"
fi
}
diff --git a/dev-dotnet/npgsql/npgsql-3.1.6.ebuild
b/dev-dotnet/npgsql/npgsql-3.1.6.ebuild
index 94c7ba6..269bc26 100644
--- a/dev-dotnet/npgsql/npgsql-3.1.6.ebuild
+++ b/dev-dotnet/npgsql/npgsql-3.1.6.ebuild
@@ -131,14 +131,13 @@ patch_nuspec_file()
else
DIR="Release"
fi
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file src="src/Npgsql/bin/${DIR}/Npgsql.dll"
target="lib\net45\" />
- </files>
-EOF
-`
- einfo ${FILES_STRING}
- sed -i 's#</package>#${FILES_STRING}</package>#' $1 || die
"replace at patch_nuspec_file()"
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping
replacement string characters"
+ <files> <!-- https://docs.nuget.org/create/nuspec-reference
-->
+ <file src="src/Npgsql/bin/${DIR}/Npgsql.dll"
target="lib\net45\" />
+ </files>
+ EOF
+ `
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g'
$1 || die "escaping line endings"
fi
}
diff --git a/dev-dotnet/x-pagedlist/x-pagedlist-1.24.0.23549-r201512120.ebuild
b/dev-dotnet/x-pagedlist/x-pagedlist-1.24.0.23549-r201512120.ebuild
index 4b81ad4..09c3809 100644
--- a/dev-dotnet/x-pagedlist/x-pagedlist-1.24.0.23549-r201512120.ebuild
+++ b/dev-dotnet/x-pagedlist/x-pagedlist-1.24.0.23549-r201512120.ebuild
@@ -101,28 +101,27 @@ patch_nuspec_file()
if use nupkg; then
if use debug; then
DIR="Debug"
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file src="src/X.PagedList/bin/${DIR}/X.PagedList.dll"
target="lib\net45\" />
- <file src="src/X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll"
target="lib\net45\" />
- <file src="src/X.PagedList/bin/${DIR}/X.PagedList.dll.mdb"
target="lib\net45\" />
- <file
src="src/X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll.mdb"
target="lib\net45\" />
- </files>
-EOF
-`
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die
"escaping replacement string characters"
+ <files> <!--
https://docs.nuget.org/create/nuspec-reference -->
+ <file
src="src/X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45\" />
+ <file
src="src/X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45\" />
+ <file
src="src/X.PagedList/bin/${DIR}/X.PagedList.dll.mdb" target="lib\net45\" />
+ <file
src="src/X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll.mdb"
target="lib\net45\" />
+ </files>
+ EOF
+ `
else
DIR="Release"
-FILES_STRING=`cat <<-EOF || die "${DIR} files at patch_nuspec_file()"
- <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
- <file src="src/X.PagedList/bin/${DIR}/X.PagedList.dll"
target="lib\net45\" />
- <file src="src/X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll"
target="lib\net45\" />
- </files>
-EOF
-`
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die
"escaping replacement string characters"
+ <files> <!--
https://docs.nuget.org/create/nuspec-reference -->
+ <file
src="src/X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45\" />
+ <file
src="src/X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45\" />
+ </files>
+ EOF
+ `
fi
- einfo ${FILES_STRING}
- sed -i 's#</package>#${FILES_STRING}</package>#' $1 || die
"replace at patch_nuspec_file()"
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g'
$1 || die "escaping line endings"
fi
}
diff --git a/dev-util/nunit/build.sh b/dev-util/nunit/build.sh
deleted file mode 100755
index 2553611..0000000
--- a/dev-util/nunit/build.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-
-rm -rf /var/tmp/portage/dev-util/nunit-3.0.1
-ebuild nunit-3.0.1.ebuild compile