#!/bin/bash # Charlemagne Ports Defaults # # Douglas Thrift # # $Id$ # Copyright 2006 Douglas Thrift # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. shopt -s expand_aliases extglob nullglob xpg_echo unalias -a if [[ `uname` == FreeBSD ]]; then alias find=gfind md5sum=gmd5sum sed=gsed stat=/usr/local/bin/gstat fi conf=`charlemagne conf` [[ -r $conf ]] && source $conf root=`charlemagne root` ports=$root/ports packages=$root/packages distfiles=$root/distfiles source $ports/sites source $ports/support # XXX: determine if we want color if [[ -t 2 ]]; then declare reset='\e[0m' bright='\e[1m' dim='\e[2m' underscore='\e[4m' blink='\e[5m' reverse='\e[7m' hidden='\e[8m' black='\e[30m' red='\e[31m' green='\e[32m' yellow='\e[33m' blue='\e[34m' magenta='\e[35m' cyan='\e[36m' white='\e[37m' _black='\e[40m' _red='\e[41m' _green='\e[42m' _yellow='\e[43m' _blue='\e[44m' _magenta='\e[45m' _cyan='\e[46m' _white='\e[47m' fi