summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2005-02-13 20:53:26 +0000
committerNed Ludd <solar@gentoo.org>2005-02-13 20:53:26 +0000
commit0cd5abe8c860ad568238663d3b307248b64cce6b (patch)
tree0b2e5972e6f5c9904e70b2d563d9ff582695481f /profiles/uclibc
parentqt-depend-when-qt-USE-not-set-fix thanks to Marc Ballarin <Ballarin.Marc@gmx.... (diff)
downloadhistorical-0cd5abe8c860ad568238663d3b307248b64cce6b.tar.gz
historical-0cd5abe8c860ad568238663d3b307248b64cce6b.tar.bz2
historical-0cd5abe8c860ad568238663d3b307248b64cce6b.zip
- comment out bash3 syntax till bash3 goes stable
Diffstat (limited to 'profiles/uclibc')
-rw-r--r--profiles/uclibc/profile.bashrc112
1 files changed, 56 insertions, 56 deletions
diff --git a/profiles/uclibc/profile.bashrc b/profiles/uclibc/profile.bashrc
index e439691cd53b..fba4c784bc53 100644
--- a/profiles/uclibc/profile.bashrc
+++ b/profiles/uclibc/profile.bashrc
@@ -1,6 +1,6 @@
# Copyright 2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/profiles/uclibc/profile.bashrc,v 1.1 2005/02/12 06:38:18 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/profiles/uclibc/profile.bashrc,v 1.2 2005/02/13 20:53:26 solar Exp $
# file - /etc/portage/package.cflags
# This gives us per pkg cflags and is auto expaned into the cxxflags.
@@ -34,60 +34,60 @@ package-distdir-clean() {
done
}
-append-cflags() {
- export CFLAGS="${CFLAGS} $*"
- export CXXFLAGS="${CXXFLAGS} $*"
- return 0
-}
-
-package-cflags() {
- local target flags flag i;
-
- # bail if file does not exist or is not readable.
- [ -r ${ROOT}/etc/portage/package.cflags ] || return 0
-
- # need bash >= 3
- if [ "${BASH_VERSINFO[0]}" -le 2 ]; then
- eecho "Need bash3 for this bashrc script to work"
- return 0
- fi
-
- while read -a target; do
- if [[ ${target[@]%%#*} ]]; then
-
- # valid syntax no >=<! operators
- # category CFLAGS
- # category/package-name CFLAGS
- if [[ ${target%%#*} && ${target%% *} =~ "^(${CATEGORY}|${CATEGORY}/${PN})\>" ]]; then
- skip=0
- if [[ ${target} != ${CATEGORY} ]] ; then
- if [[ ${target} != ${CATEGORY}/${PN} ]] ; then
- skip=1
- fi
- fi
- if [ "${skip}" == 0 ] ; then
- flags=(${target[@]:1})
- if [[ ${flags[@]} =~ 'CFLAGS' ]]; then
- for (( i = 0; i < ${#flags[@]}; i++ )); do
- if [[ ${flags[$i]} =~ 'CFLAGS' ]]; then
- appened-cflags $(eval echo "${flags[$i]}")
- unset flags[$i]
- fi
- done
- fi
- for flag in ${flags[@]}; do
- if [[ ${CFLAGS} =~ ${flag} ]]; then
- continue 1
- else
- append-cflags "${flag}"
- fi
- done
- export -n C{,XX}FLAGS
- fi
- fi
- fi
- done < ${ROOT}/etc/portage/package.cflags
-}
+#append-cflags() {
+# export CFLAGS="${CFLAGS} $*"
+# export CXXFLAGS="${CXXFLAGS} $*"
+# return 0
+#}
+#
+#package-cflags() {
+# local target flags flag i;
+#
+# # bail if file does not exist or is not readable.
+# [ -r ${ROOT}/etc/portage/package.cflags ] || return 0
+#
+# # need bash >= 3
+# if [ "${BASH_VERSINFO[0]}" -le 2 ]; then
+# eecho "Need bash3 for this bashrc script to work"
+# return 0
+# fi
+#
+# while read -a target; do
+# if [[ ${target[@]%%#*} ]]; then
+#
+# # valid syntax no >=<! operators
+# # category CFLAGS
+# # category/package-name CFLAGS
+# if [[ ${target%%#*} && ${target%% *} =~ "^(${CATEGORY}|${CATEGORY}/${PN})\>" ]]; then
+# skip=0
+# if [[ ${target} != ${CATEGORY} ]] ; then
+# if [[ ${target} != ${CATEGORY}/${PN} ]] ; then
+# skip=1
+# fi
+# fi
+# if [ "${skip}" == 0 ] ; then
+# flags=(${target[@]:1})
+# if [[ ${flags[@]} =~ 'CFLAGS' ]]; then
+# for (( i = 0; i < ${#flags[@]}; i++ )); do
+# if [[ ${flags[$i]} =~ 'CFLAGS' ]]; then
+# appened-cflags $(eval echo "${flags[$i]}")
+# unset flags[$i]
+# fi
+# done
+# fi
+# for flag in ${flags[@]}; do
+# if [[ ${CFLAGS} =~ ${flag} ]]; then
+# continue 1
+# else
+# append-cflags "${flag}"
+# fi
+# done
+# export -n C{,XX}FLAGS
+# fi
+# fi
+# fi
+# done < ${ROOT}/etc/portage/package.cflags
+#}
if [ "$EBUILD_PHASE" = "/usr/lib/portage/bin/ebuild.sh" -o "$EBUILD_PHASE" = "/usr/lib/portage/bin/ebuild-daemon.sh" -o "$EBUILD_PHASE" = "bash" ]; then
PATH="/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:${ROOTPATH}"
@@ -96,7 +96,7 @@ if [ "$EBUILD_PHASE" = "/usr/lib/portage/bin/ebuild.sh" -o "$EBUILD_PHASE" = "/u
depend) : ;;
prerm|postrm|clean) : ;;
setup|unpack|postinst|compile|*)
- package-cflags
+# package-cflags
[ "$EBUILD_PHASE" = "postinst" ] && package-distdir-clean
;;
esac