2009-07-23 Lukas (Luc) Oboril <
[email protected]> * CBEenv.spec: crete symlink for GNU grep
--- a/CBEenv.spec Thu Jul 23 10:43:32 2009 +0000
+++ b/CBEenv.spec Thu Jul 23 11:04:54 2009 +0000
@@ -108,6 +108,26 @@
ln -s %relroot$GM4 m4
%endif
+
+# GNU grep
+%if %(pkginfo -q CBEgnugrep && echo 0 || echo 1)
+# create the "grep" symlink to ggrep when using SUNWggrp
+GGREP=xx
+for f in /usr/gnu/bin/grep /usr/bin/ggrep /usr/sfw/bin/ggrep; do
+ test -f %{?altroot}$f && {
+ GGREP=$f
+ break
+ }
+done
+if [ "x$GGREP" == xxx ]; then
+ echo 'GNU grep not found, please install SUNWggrp or CBEgnugrep'
+ exit 1
+fi
+cd $RPM_BUILD_ROOT%{_bindir}
+ln -s %relroot$GGREP grep
+%endif
+
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -121,6 +141,8 @@
%dir %attr (0755, %build_user, other) %{_libdir}/cbe-env
%changelog
+* Thu Jul 23 2009 - [email protected]
+- create symlink for GNU grep
* Thu Jun 26 2008 - [email protected]
- add env_include.sh
* Mon Jun 16 2008 <[email protected]>
--- a/ChangeLog Thu Jul 23 10:43:32 2009 +0000
+++ b/ChangeLog Thu Jul 23 11:04:54 2009 +0000
@@ -1,3 +1,6 @@
+2009-07-23 Lukas (Luc) Oboril <[email protected]>
+ * CBEenv.spec: crete symlink for GNU grep
+
2009-07-23 Lukas (Luc) Oboril <[email protected]>
* cbe-install: add git as optional tool
* CBEgit.spec: build only base functionality