From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030716
Description of problem:
From: Matthew Booth <email@example.com>
To: Dennis Gregorovic <firstname.lastname@example.org>
Subject: Patch to ccm-devel.sh
Date: 01 Sep 2003 12:11:10 +0100
The attached patch makes ccm-profile into a function and exports it. It
pulls the entire contents of /usr/bin/ccm-devel-profile.sh into
/etc/profile.d/ccm-devel.sh, hence removing the need for this file to
My motivation for doing this is that I noticed when using screen I had
to manually source /etc/profile in order for ccm-profile to work. As an
alias it is set in the current shell, but is not exported to
subprocesses. A function can be exported.
--- /root/ccm-devel.sh Mon Sep 1 11:59:18 2003
+++ /etc/profile.d/ccm-devel.sh Mon Sep 1 12:05:12 2003
@@ -9,7 +9,36 @@
-alias ccm-profile='. ccm-devel-profile.sh'
+ if [ -z $1 ]; then
+ echo "ccm-devel-profile.sh <servername>"
+ if [ -z $CCM_DEVEL_CONF_DIR ]; then
+ echo "CCM_DEVEL_CONF_DIR not set"
+ . $CCM_DEVEL_CONF_DIR/project.sh
+ for i in $CCM_DEVEL_CONF_DIR/project.d/*.sh
+ if [ -x $i ]
+ . $i
+ # "$CCM_HOME/project.sh" allows the user to set environment variables or
+ # perform other actions on a per-project basis.
+ if [ -x "$CCM_HOME/project.sh" ]; then
+ . "$CCM_HOME/project.sh"
+export -f ccm-profile
# Set up ccm-profile completion
# In order for this to work, we must be on a GNU/Linux OS running Bash >= 2.04
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.run build system under screen
Actual Results: ccm-profile doesn't work
Expected Results: ccm-profile works
closing out old CCM bugs