Changed set_colors so that it's executable
[clearscm.git] / rc / system
1 #!/bin/bash
2 ################################################################################
3 #
4 # File:         $RCSfile: system,v $
5 # Revision:     $Revision: 1.6 $
6 # Description:  System specific settings
7 # Author:       Andrew@DeFaria.com
8 # Created:      Mon Aug 20 17:35:01  2001
9 # Modified:     $Date: 2010/06/11 20:42:23 $
10 # Language:     bash
11 #
12 # (c) Copyright 2000-2005, Andrew@DeFaria.com, all rights reserved.
13 #
14 ################################################################################
15 # This system's name
16 export SYSNAME=$(uname -n)
17
18 # Strip domains
19 SYSNAME=${SYSNAME%%\.*}
20
21 # Set to initial cap
22 SYSNAME=$(echo ${SYSNAME:0:1} | tr [:lower:] [:upper:])$(echo ${SYSNAME:1}   | tr [:upper:] [:lower:])
23
24 # Aliasing
25 case "$SYSNAME" in
26   Az25jzhxkb2d)
27     SYSNAME="Venus"
28     ;;
29
30   Cdvra99a0983)
31     SYSNAME="Dev"
32     ;;
33
34   Cuvra99a0983)
35     SYSNAME="UAT"
36     ;;
37
38   Crvra99a0983)
39     SYSNAME="BCP"
40     ;;
41
42   Cpvra99a0983)
43     SYSNAME="Production"
44     ;;
45
46 esac