rpms/ksh/devel ksh.spec,1.62,1.63 kshrc.rhs,1.1,1.2
Michal Hlavinka
mhlavink at fedoraproject.org
Mon May 31 12:39:07 UTC 2010
Author: mhlavink
Update of /cvs/pkgs/rpms/ksh/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv31384
Modified Files:
ksh.spec kshrc.rhs
Log Message:
* Mon May 31 2010 Michal Hlavinka <mhlavink at redhat.com> - 20100309-6
- add pathmunge to /etc/kshrc
Index: ksh.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ksh/devel/ksh.spec,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -p -r1.62 -r1.63
--- ksh.spec 5 May 2010 12:24:14 -0000 1.62
+++ ksh.spec 31 May 2010 12:39:06 -0000 1.63
@@ -6,7 +6,7 @@ URL: http://www.kornshell.com/
Group: System Environment/Shells
License: CPL
Version: 20100309
-Release: 5%{?dist}
+Release: 6%{?dist}
Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{releasedate}.tgz
Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{releasedate}.tgz
Source3: kshrc.rhs
@@ -107,6 +107,9 @@ fi
rm -rf $RPM_BUILD_ROOT
%changelog
+* Mon May 31 2010 Michal Hlavinka <mhlavink at redhat.com> - 20100309-6
+- add pathmunge to /etc/kshrc
+
* Wed May 05 2010 Michal Hlavinka <mhlavink at redhat.com> - 20100309-5
- fix rare cd builtin crash (#578582)
Index: kshrc.rhs
===================================================================
RCS file: /cvs/pkgs/rpms/ksh/devel/kshrc.rhs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- kshrc.rhs 21 Oct 2008 17:16:49 -0000 1.1
+++ kshrc.rhs 31 May 2010 12:39:06 -0000 1.2
@@ -20,6 +20,21 @@ _src_etc_profile_d()
unset i
fi
}
+
+pathmunge () {
+case ":${PATH}:" in
+*:"$1":*)
+ ;;
+*)
+ if [ "$2" = "after" ]; then
+ PATH=$PATH:$1
+ else
+ PATH=$1:$PATH
+ fi
+esac
+}
+
_src_etc_profile_d
unset -f _src_etc_profile_d
+unset -f pathmunge
More information about the scm-commits
mailing list