dev-lang/python-exec: Use newins with stdin input
authorMichał Górny <mgorny@gentoo.org>
Wed, 15 Aug 2018 08:50:14 +0000 (10:50 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 15 Aug 2018 10:32:44 +0000 (12:32 +0200)
dev-lang/python-exec/python-exec-2.4.6.ebuild
dev-lang/python-exec/python-exec-9999.ebuild

index 9ed5ee58b7766033835294bb1594fdfa319e9828..e888b5fef3b159082b0f2d69054a512a63bef6f1 100644 (file)
@@ -48,10 +48,9 @@ src_install() {
        default
 
        # Prepare and own the template
-       sed -n -e '/^#/p' config/python-exec.conf.example \
-               > "${T}"/python-exec.conf || die
        insinto /etc/python-exec
-       doins "${T}"/python-exec.conf
+       newins - python-exec.conf \
+               < <(sed -n -e '/^#/p' config/python-exec.conf.example)
 
        local f
        for f in python{,2,3}; do
index 6fc81aeeefa92b0c00336159a0467bcd735a92a3..c0f5a62b4d0b6b6807cb3f128173664fb666177f 100644 (file)
@@ -54,10 +54,9 @@ src_install() {
        default
 
        # Prepare and own the template
-       sed -n -e '/^#/p' config/python-exec.conf.example \
-               > "${T}"/python-exec.conf || die
        insinto /etc/python-exec
-       doins "${T}"/python-exec.conf
+       newins - python-exec.conf \
+               < <(sed -n -e '/^#/p' config/python-exec.conf.example)
 
        local f
        for f in python{,2,3}; do