public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/icecream] epel10.2: Add profile.d scripts to set $PATH automatically
@ 2026-07-30 16:30 Michal Schmidt
  0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-07-30 16:30 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/icecream
Branch : epel10.2
Commit : 8d4b8905125145e76ee015a2e58c69ce82de1e7e
Author : Michal Schmidt <michich@fedoraproject.org>
Date   : 2007-11-12T00:02:32+00:00
Stats  : +17/-1 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/icecream/c/8d4b8905125145e76ee015a2e58c69ce82de1e7e?branch=epel10.2

Log:
Add profile.d scripts to set $PATH automatically

---
diff --git a/icecream.csh.in b/icecream.csh.in
new file mode 100644
index 0000000..3f317a0
--- /dev/null
+++ b/icecream.csh.in
@@ -0,0 +1,3 @@
+if ( "$path" !~ *@LIBDIR@/icecc/bin* ) then
+    set path = ( @LIBDIR@/icecc/bin $path )
+endif

diff --git a/icecream.sh.in b/icecream.sh.in
new file mode 100644
index 0000000..5ccf52a
--- /dev/null
+++ b/icecream.sh.in
@@ -0,0 +1,3 @@
+if ! echo "$PATH" | grep -qw @LIBDIR@/icecc/bin ; then
+    PATH="@LIBDIR@/icecc/bin:$PATH"
+fi

diff --git a/icecream.spec b/icecream.spec
index 69d347c..916bb7e 100644
--- a/icecream.spec
+++ b/icecream.spec
@@ -1,6 +1,6 @@
 Name:		icecream
 Version:	0.8.0
-Release:	2.20071101svn%{?dist}
+Release:	3.20071101svn%{?dist}
 Summary:	Distributed compiler
 
 Group:		Development/Tools
@@ -10,6 +10,8 @@ URL:		http://en.opensuse.org/Icecream
 # svn export -r 731514 svn://anonsvn.kde.org/home/kde/trunk/icecream icecream-0.8.0
 # tar -czvf icecream-0.8.0.tar.gz icecream-0.8.0
 Source0:	icecream-0.8.0.tar.gz
+Source1:	icecream.sh.in
+Source2:	icecream.csh.in
 Patch0:		icecream-rename-scheduler.patch
 Patch1:		icecream-add-initscripts.patch
 Patch2:		icecream-cleanup-conffile.patch
@@ -54,6 +56,8 @@ This package contains development files for %{name}.
 %patch1 -p0
 %patch2 -p0
 make -f Makefile.cvs
+sed -e 's|@LIBDIR@|%{_libdir}|g' %{SOURCE1} > icecream.sh
+sed -e 's|@LIBDIR@|%{_libdir}|g' %{SOURCE2} > icecream.csh
 
 %build
 %configure --disable-static --enable-shared
@@ -94,6 +98,8 @@ install -D -m 644 suse/sysconfig.icecream %{buildroot}/%{_sysconfdir}/sysconfig/
 install -D -m 755 fedora/initscript-iceccd %{buildroot}/%{_sysconfdir}/rc.d/init.d/iceccd
 install -D -m 755 fedora/initscript-scheduler \
 	%{buildroot}/%{_sysconfdir}/rc.d/init.d/icecc-scheduler
+install -d -m 755 %{buildroot}/%{_sysconfdir}/profile.d
+install -p -m 644 icecream.sh icecream.csh %{buildroot}/%{_sysconfdir}/profile.d
 
 # create default working dir
 mkdir -p %{buildroot}/%{_localstatedir}/cache/icecream
@@ -143,6 +149,7 @@ rm -rf %{buildroot}
 %{_sbindir}/icecc-scheduler
 %{_mandir}/man*/*
 %config(noreplace) %{_sysconfdir}/sysconfig/icecream
+%config(noreplace) %{_sysconfdir}/profile.d/icecream.*sh
 %{_sysconfdir}/rc.d/init.d/iceccd
 %{_sysconfdir}/rc.d/init.d/icecc-scheduler
 %{_localstatedir}/cache/icecream
@@ -153,6 +160,9 @@ rm -rf %{buildroot}
 %{_libdir}/pkgconfig/icecc.pc
 
 %changelog
+* Mon Nov 12 2007 Michal Schmidt <mschmidt@redhat.com> - 0.8.0-3.20071101svn
+- Add icecc to $PATH using scripts in profile.d
+
 * Tue Nov  6 2007 Michal Schmidt <mschmidt@redhat.com> - 0.8.0-2.20071101svn
 - Use the _datadir macro instead of hardcoded /usr/share
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-30 16:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-30 16:30 [rpms/icecream] epel10.2: Add profile.d scripts to set $PATH automatically Michal Schmidt

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