public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schmidt <michich@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/icecream] epel10: Add profile.d scripts to set $PATH automatically
Date: Thu, 30 Jul 2026 15:15:20 GMT [thread overview]
Message-ID: <178542452009.1.4874655955460654601.rpms-icecream-8d4b89051251@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/icecream
Branch : epel10
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
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
reply other threads:[~2026-07-30 15:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178542452009.1.4874655955460654601.rpms-icecream-8d4b89051251@fedoraproject.org \
--to=michich@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox