[perl-local-lib] Parse perl-homedir configuration bash syntax by csh profile script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit dc76f6baf888c5ba9e448150c4397704501c9246
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Fri Jul 25 10:06:03 2014 +0200

    Parse perl-homedir configuration bash syntax by csh profile script

 perl-homedir.csh    |    4 ++--
 perl-local-lib.spec |    7 ++++++-
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/perl-homedir.csh b/perl-homedir.csh
index b00fb0d..eaacb37 100644
--- a/perl-homedir.csh
+++ b/perl-homedir.csh
@@ -5,10 +5,10 @@ setenv PERL_HOMEDIR 1
 
 # load our configs, aka opportunities to set PERL_HOMEDIR=0
 if (-f /etc/sysconfig/perl-homedir) then
-	source /etc/sysconfig/perl-homedir
+	eval `sed -ne 's|^[[:blank:]]*\([^#=]\{1,\}\)=\([^=]*\)|setenv \1 \2;|p' /etc/sysconfig/perl-homedir`
 endif
 if (-f "$HOME/.perl-homedir") then
-	source "$HOME/.perl-homedir"
+	eval `sed -ne 's|^[[:blank:]]*\([^#=]\{1,\}\)=\([^=]*\)|setenv \1 \2;|p' "$HOME/.perl-homedir"`
 endif
 
 alias perlll 'eval "`perl -Mlocal::lib`"'
diff --git a/perl-local-lib.spec b/perl-local-lib.spec
index 0d88f84..f24377f 100644
--- a/perl-local-lib.spec
+++ b/perl-local-lib.spec
@@ -1,6 +1,6 @@
 Name:       perl-local-lib
 Version:    1.008010
-Release:    5%{?dist}
+Release:    6%{?dist}
 # lib/local/lib.pm -> GPL+ or Artistic
 License:    GPL+ or Artistic
 Group:      Development/Libraries
@@ -55,6 +55,7 @@ Group:      Development/Libraries
 Summary:    Per-user Perl local::lib setup
 Requires:   %{name} = %{version}-%{release}
 Requires:   /usr/bin/cpan
+Requires:   /usr/bin/sed
 
 %description -n perl-homedir
 perl-homedir configures the system to automatically create a ~/perl5
@@ -95,6 +96,10 @@ make test
 %{_sysconfdir}/profile.d/*
 
 %changelog
+* Fri Jul 25 2014 Petr Pisar <ppisar@xxxxxxxxxx> - 1.008010-6
+- Parse perl-homedir configuration bash syntax by csh profile script
+  (bug #1122993)
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.008010-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux