public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/x-pagedlist/
@ 2016-01-15 13:20 Heather Cynede
  0 siblings, 0 replies; 4+ messages in thread
From: Heather Cynede @ 2016-01-15 13:20 UTC (permalink / raw
  To: gentoo-commits

commit:     dbd0af29cc9cdf9b271248b2119b12a14bdb326d
Author:     ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Tue Dec 29 12:12:05 2015 +0000
Commit:     Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Tue Dec 29 12:12:05 2015 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=dbd0af29

lines from OpenNAT ebuild was removed

 dev-dotnet/x-pagedlist/x-pagedlist-1.24.0.23549-r201512120.ebuild | 2 --
 1 file changed, 2 deletions(-)

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 67da841..57c2926 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
@@ -149,8 +149,6 @@ Description: @DESCRIPTION@
 Version: @VERSION@
 Libs: @LIBS@
 EOF
-# Package exported to: /var/tmp/portage/dev-dotnet/Open-NAT-1.0.0-r201510290/image//usr/lib64/mono/Open-NAT/Open.Nat.dll -> ../gac/Open.Nat/1.0.0.0__0738eb9f132ed756/Open.Nat.dll
-# Installed Open.Nat/bin/Release/Open.Nat.dll into the gac (/var/tmp/portage/dev-dotnet/Open-NAT-1.0.0-r201510290/image//usr/lib64/mono/gac)
 
 		einfo PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists "${PC_FILE_NAME}"
 		PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists "${PC_FILE_NAME}" || die ".pc file failed to validate."


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/x-pagedlist/
@ 2017-02-08 11:41 Mikhail Pukhlikov
  0 siblings, 0 replies; 4+ messages in thread
From: Mikhail Pukhlikov @ 2017-02-08 11:41 UTC (permalink / raw
  To: gentoo-commits

commit:     f86e71b253aa22a624bb8a28825ff42e5f2ff151
Author:     ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Tue Jan 24 22:01:11 2017 +0000
Commit:     Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Tue Jan 24 22:01:11 2017 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=f86e71b2

minor tweaks

 dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild | 67 +++++++++--------------
 1 file changed, 27 insertions(+), 40 deletions(-)

diff --git a/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild b/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild
index 67968e6..e536854 100644
--- a/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild
+++ b/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild
@@ -3,6 +3,11 @@
 # $Id$
 
 EAPI=6
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror"
+
+USE_DOTNET="net45"
+IUSE="net45 +gac +nupkg +pkg-config debug developer"
 
 inherit versionator gac nupkg
 
@@ -10,18 +15,16 @@ HOMEPAGE="https://github.com/kpi-ua/X.PagedList/"
 DESCRIPTION="Nugget for easily paging through any IEnumerable/IQueryable in Asp.Net MVC"
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="net45 +gac +nupkg +pkg-config debug developer"
-USE_DOTNET="net45"
 
 COMMON_DEPEND=">=dev-lang/mono-4.0.2.5
 "
 
-RDEPEND="${COMMON_DEPEND}
-"
-
 DEPEND="${COMMON_DEPEND}
 	virtual/pkgconfig
+	>=dev-util/mono-packaging-tools-1.4.2.2
+"
+
+RDEPEND="${COMMON_DEPEND}
 "
 
 NAME="X.PagedList"
@@ -31,13 +34,12 @@ LICENSE_URL="${REPOSITORY}/blob/${EGIT_BRANCH}/LICENSE"
 ICONMETA="http://uxrepo.com/static/icon-sets/iconic/svg/list.svg"
 ICON_URL="https://github.com/ArsenShnurkov/X.PagedList/blob/switching-from-pcl/misc/list.svg"
 
-EGIT_COMMIT="48bc7da1bc3b6b294c69796bd9573e670edd3c64"
-SRC_URI="${REPOSITORY}/archive/${EGIT_BRANCH}/${EGIT_COMMIT}.zip -> ${PF}.zip
-	mirror://gentoo/mono.snk.bz2"
+EGIT_COMMIT="c0521a4099c65efd3e964ea57129d5a61261f784"
+SRC_URI="${REPOSITORY}/archive/${EGIT_BRANCH}/${EGIT_COMMIT}.tar.gz -> ${PF}.tar.gz"
 #S="${WORKDIR}/${NAME}-${EGIT_COMMIT}"
 S="${WORKDIR}/${NAME}-${EGIT_BRANCH}"
 
-METAFILETOBUILD=./src/X.PagedList.sln
+METAFILETOBUILD=./X.PagedList.sln
 #OUTPUT_DIR=
 
 # there is an original file exists: ./src/X.PagedList.Mvc/PagedList.Mvc.nuspec
@@ -45,29 +47,12 @@ NUSPEC_FILE_NAME=X.PagedList.nuspec
 #NUSPEC_VERSION="${PVR//-r/.}"
 NUSPEC_VERSION=$(get_version_component_range 1-3)"${PR//r/.}"
 
-# rm -rf /var/tmp/portage/dev-dotnet/X-PagedList-1.24.0.23549-r201512120
-# emerge =X-PagedList-1.24.0.23549-r201512120
-# leafpad /var/tmp/portage/dev-dotnet/X-PagedList-1.24.0.23549-r201512120/temp/build.log &
-
-src_unpack()
-{
-	default
-	enuget_download_rogue_binary "Microsoft.Web.Infrastructure" "1.0.0.0"
-	enuget_download_rogue_binary "Microsoft.AspNet.WebPages" "3.2.3"
-	enuget_download_rogue_binary "Microsoft.AspNet.Razor" "3.2.3"
-	enuget_download_rogue_binary "Microsoft.AspNet.Mvc" "5.2.3"
-}
+# rm -rf /var/tmp/portage/dev-dotnet/X-PagedList-*
+# emerge =X-PagedList-5.3.0.8
+# leafpad /var/tmp/portage/dev-dotnet/X-PagedList-5.3.0.8/temp/build.log &
 
 src_prepare() {
 	einfo "patching project files"
-	epatch "${FILESDIR}/X.PagedList.csproj.patch"
-	epatch "${FILESDIR}/X.PagedList.Mvc.csproj.patch"
-
-	# no restoring for this particular project for now, see src_unpack() above instead
-	# einfo "restoring packages"
-	# enuget_restore -Verbosity detailed -SolutionDirectory "${S}" "./src/X.PagedList/packages.config"
-	# enuget_restore "./src/X.PagedList.Mvc/X.PagedList.Mvc.csproj"
-	# enuget_restore -Verbosity detailed -SolutionDirectory "${S}" "./src/X.PagedList.Mvc/packages.config"
 
 	einfo "preparing nuspec"
 	cp "${FILESDIR}/${NUSPEC_FILE_NAME}" "${S}/${NUSPEC_FILE_NAME}" || die
@@ -80,9 +65,11 @@ src_configure() {
 	:;
 }
 
+SNK_FILENAME="${S}/X.PagedList/PublicPrivateKeyFile.snk"
+
 src_compile() {
-	exbuild /p:SignAssembly=true "/p:AssemblyOriginatorKeyFile=${WORKDIR}/mono.snk" "./src/X.PagedList/X.PagedList.csproj"
-	exbuild /p:SignAssembly=true "/p:AssemblyOriginatorKeyFile=${WORKDIR}/mono.snk" "./src/X.PagedList.Mvc/X.PagedList.Mvc.csproj"
+	exbuild_strong "./X.PagedList/X.PagedList.csproj"
+	exbuild_strong "./X.PagedList.Mvc/X.PagedList.Mvc.csproj"
 
 	# run nuget_pack
 	einfo "setting .nupkg version to ${NUSPEC_VERSION}"
@@ -92,8 +79,8 @@ src_compile() {
 src_install() {
 	enupkg "${WORKDIR}/${NAME}.${NUSPEC_VERSION}.nupkg"
 
-	egacinstall "src/X.PagedList/bin/${DIR}/X.PagedList.dll"
-	egacinstall "src/X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll"
+	egacinstall "X.PagedList/bin/${DIR}/X.PagedList.dll"
+	egacinstall "X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll"
 
 	einstall_pc_file "${PN}" "${PV}" "X.PagedList.Mvc"
 }
@@ -105,10 +92,10 @@ patch_nuspec_file()
 			DIR="Debug"
 			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\" />
+			    <file src="X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45\" />
+			    <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45\" />
+			    <file src="X.PagedList/bin/${DIR}/X.PagedList.dll.mdb" target="lib\net45\" />
+			    <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll.mdb" target="lib\net45\" />
 			  </files>
 			EOF
 			`
@@ -116,8 +103,8 @@ patch_nuspec_file()
 			DIR="Release"
 			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="X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45\" />
+			    <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45\" />
 			  </files>
 			EOF
 			`


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/x-pagedlist/
@ 2017-02-08 11:41 Mikhail Pukhlikov
  0 siblings, 0 replies; 4+ messages in thread
From: Mikhail Pukhlikov @ 2017-02-08 11:41 UTC (permalink / raw
  To: gentoo-commits

commit:     b11654cdec541ab68198f93ba7667324a876d52a
Author:     ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Tue Jan 24 22:41:15 2017 +0000
Commit:     Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Tue Jan 24 22:41:15 2017 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=b11654cd

version inserted

 dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild b/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild
index e536854..4cac7b1 100644
--- a/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild
+++ b/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild
@@ -44,8 +44,7 @@ METAFILETOBUILD=./X.PagedList.sln
 
 # there is an original file exists: ./src/X.PagedList.Mvc/PagedList.Mvc.nuspec
 NUSPEC_FILE_NAME=X.PagedList.nuspec
-#NUSPEC_VERSION="${PVR//-r/.}"
-NUSPEC_VERSION=$(get_version_component_range 1-3)"${PR//r/.}"
+NUSPEC_VERSION="${PV}"
 
 # rm -rf /var/tmp/portage/dev-dotnet/X-PagedList-*
 # emerge =X-PagedList-5.3.0.8
@@ -54,6 +53,10 @@ NUSPEC_VERSION=$(get_version_component_range 1-3)"${PR//r/.}"
 src_prepare() {
 	einfo "patching project files"
 
+	find ${S} -iname "AssemblyInfo.cs" -exec sed -i '/Assembly.*Version/d' {} \; || die
+	mpt-csproj --inject-import='$(MSBuildToolsPath)\MSBuild.Community.Tasks.Targets' ${S} || die
+	mpt-csproj --inject-versioning=BuildVersion ${S} || die
+
 	einfo "preparing nuspec"
 	cp "${FILESDIR}/${NUSPEC_FILE_NAME}" "${S}/${NUSPEC_FILE_NAME}" || die
 	patch_nuspec_file "${S}/${NUSPEC_FILE_NAME}"
@@ -68,8 +71,8 @@ src_configure() {
 SNK_FILENAME="${S}/X.PagedList/PublicPrivateKeyFile.snk"
 
 src_compile() {
-	exbuild_strong "./X.PagedList/X.PagedList.csproj"
-	exbuild_strong "./X.PagedList.Mvc/X.PagedList.Mvc.csproj"
+	exbuild_strong /p:BuildVersion=${PV} "./X.PagedList/X.PagedList.csproj"
+	exbuild_strong /p:BuildVersion=${PV} "./X.PagedList.Mvc/X.PagedList.Mvc.csproj"
 
 	# run nuget_pack
 	einfo "setting .nupkg version to ${NUSPEC_VERSION}"
@@ -92,10 +95,10 @@ patch_nuspec_file()
 			DIR="Debug"
 			FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping replacement string characters"
 			  <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
-			    <file src="X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45\" />
-			    <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45\" />
-			    <file src="X.PagedList/bin/${DIR}/X.PagedList.dll.mdb" target="lib\net45\" />
-			    <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll.mdb" target="lib\net45\" />
+			    <file src="X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib/net45" />
+			    <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib/net45" />
+			    <file src="X.PagedList/bin/${DIR}/X.PagedList.dll.mdb" target="lib/net45" />
+			    <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll.mdb" target="lib/net45" />
 			  </files>
 			EOF
 			`
@@ -103,8 +106,8 @@ patch_nuspec_file()
 			DIR="Release"
 			FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping replacement string characters"
 			  <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
-			    <file src="X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45\" />
-			    <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45\" />
+			    <file src="X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45" />
+			    <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45" />
 			  </files>
 			EOF
 			`


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/x-pagedlist/
@ 2017-02-08 11:41 Mikhail Pukhlikov
  0 siblings, 0 replies; 4+ messages in thread
From: Mikhail Pukhlikov @ 2017-02-08 11:41 UTC (permalink / raw
  To: gentoo-commits

commit:     715c8f076aa96348326eefd3c3b667802f34363c
Author:     ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Tue Jan 24 21:11:24 2017 +0000
Commit:     Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Tue Jan 24 21:11:24 2017 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=715c8f07

copy of previous version as baseline

 dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild | 128 ++++++++++++++++++++++
 1 file changed, 128 insertions(+)

diff --git a/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild b/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild
new file mode 100644
index 0000000..67968e6
--- /dev/null
+++ b/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit versionator gac nupkg
+
+HOMEPAGE="https://github.com/kpi-ua/X.PagedList/"
+DESCRIPTION="Nugget for easily paging through any IEnumerable/IQueryable in Asp.Net MVC"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="net45 +gac +nupkg +pkg-config debug developer"
+USE_DOTNET="net45"
+
+COMMON_DEPEND=">=dev-lang/mono-4.0.2.5
+"
+
+RDEPEND="${COMMON_DEPEND}
+"
+
+DEPEND="${COMMON_DEPEND}
+	virtual/pkgconfig
+"
+
+NAME="X.PagedList"
+REPOSITORY="https://github.com/ArsenShnurkov/${NAME}"
+EGIT_BRANCH="master"
+LICENSE_URL="${REPOSITORY}/blob/${EGIT_BRANCH}/LICENSE"
+ICONMETA="http://uxrepo.com/static/icon-sets/iconic/svg/list.svg"
+ICON_URL="https://github.com/ArsenShnurkov/X.PagedList/blob/switching-from-pcl/misc/list.svg"
+
+EGIT_COMMIT="48bc7da1bc3b6b294c69796bd9573e670edd3c64"
+SRC_URI="${REPOSITORY}/archive/${EGIT_BRANCH}/${EGIT_COMMIT}.zip -> ${PF}.zip
+	mirror://gentoo/mono.snk.bz2"
+#S="${WORKDIR}/${NAME}-${EGIT_COMMIT}"
+S="${WORKDIR}/${NAME}-${EGIT_BRANCH}"
+
+METAFILETOBUILD=./src/X.PagedList.sln
+#OUTPUT_DIR=
+
+# there is an original file exists: ./src/X.PagedList.Mvc/PagedList.Mvc.nuspec
+NUSPEC_FILE_NAME=X.PagedList.nuspec
+#NUSPEC_VERSION="${PVR//-r/.}"
+NUSPEC_VERSION=$(get_version_component_range 1-3)"${PR//r/.}"
+
+# rm -rf /var/tmp/portage/dev-dotnet/X-PagedList-1.24.0.23549-r201512120
+# emerge =X-PagedList-1.24.0.23549-r201512120
+# leafpad /var/tmp/portage/dev-dotnet/X-PagedList-1.24.0.23549-r201512120/temp/build.log &
+
+src_unpack()
+{
+	default
+	enuget_download_rogue_binary "Microsoft.Web.Infrastructure" "1.0.0.0"
+	enuget_download_rogue_binary "Microsoft.AspNet.WebPages" "3.2.3"
+	enuget_download_rogue_binary "Microsoft.AspNet.Razor" "3.2.3"
+	enuget_download_rogue_binary "Microsoft.AspNet.Mvc" "5.2.3"
+}
+
+src_prepare() {
+	einfo "patching project files"
+	epatch "${FILESDIR}/X.PagedList.csproj.patch"
+	epatch "${FILESDIR}/X.PagedList.Mvc.csproj.patch"
+
+	# no restoring for this particular project for now, see src_unpack() above instead
+	# einfo "restoring packages"
+	# enuget_restore -Verbosity detailed -SolutionDirectory "${S}" "./src/X.PagedList/packages.config"
+	# enuget_restore "./src/X.PagedList.Mvc/X.PagedList.Mvc.csproj"
+	# enuget_restore -Verbosity detailed -SolutionDirectory "${S}" "./src/X.PagedList.Mvc/packages.config"
+
+	einfo "preparing nuspec"
+	cp "${FILESDIR}/${NUSPEC_FILE_NAME}" "${S}/${NUSPEC_FILE_NAME}" || die
+	patch_nuspec_file "${S}/${NUSPEC_FILE_NAME}"
+
+	eapply_user
+}
+
+src_configure() {
+	:;
+}
+
+src_compile() {
+	exbuild /p:SignAssembly=true "/p:AssemblyOriginatorKeyFile=${WORKDIR}/mono.snk" "./src/X.PagedList/X.PagedList.csproj"
+	exbuild /p:SignAssembly=true "/p:AssemblyOriginatorKeyFile=${WORKDIR}/mono.snk" "./src/X.PagedList.Mvc/X.PagedList.Mvc.csproj"
+
+	# run nuget_pack
+	einfo "setting .nupkg version to ${NUSPEC_VERSION}"
+	enuspec -Prop "version=${NUSPEC_VERSION}" "${S}/${NUSPEC_FILE_NAME}"
+}
+
+src_install() {
+	enupkg "${WORKDIR}/${NAME}.${NUSPEC_VERSION}.nupkg"
+
+	egacinstall "src/X.PagedList/bin/${DIR}/X.PagedList.dll"
+	egacinstall "src/X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll"
+
+	einstall_pc_file "${PN}" "${PV}" "X.PagedList.Mvc"
+}
+
+patch_nuspec_file()
+{
+	if use nupkg; then
+		if use debug; then
+			DIR="Debug"
+			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=`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
+
+		sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g' $1 || die "escaping line endings"
+	fi
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-08 11:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-08 11:41 [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/x-pagedlist/ Mikhail Pukhlikov
  -- strict thread matches above, loose matches on Subject: below --
2017-02-08 11:41 Mikhail Pukhlikov
2017-02-08 11:41 Mikhail Pukhlikov
2016-01-15 13:20 Heather Cynede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox