source: dasscm/trunk/etc/profile.d/dasscm.sh@ 1120

Last change on this file since 1120 was 932, checked in by joergs, on Dec 3, 2010 at 4:24:59 PM

added /etc/profile.d/dasscm.sh

File size: 753 bytes
RevLine 
[774]1#!/bin/sh
2
[932]3CONFIG="/etc/dasscm.conf"
4
5if [ -r $CONFIG ]; then
6 source $CONFIG
7
8 # check if a warn message is wanted
9 # and dasscm is already configured ($DASSCM_REPOSITORY_NAME)
10 if [ "$DASSCM_STATUS_AT_SHELL_LOGIN" = "yes" -a -n "$DASSCM_REPOSITORY_NAME" ]; then
11
12 # check if write permissions are given
13 if [ -w "${DASSCM_LOCAL_REPOSITORY_BASE}/${DASSCM_REPOSITORY_NAME}" ]; then
14
15 # get dasscm status
16 # and print it, if a result is given
17 RESULT=`dasscm status`
18 if [ $? -ne 0 ]; then
19 printf "* DASSCM warnings *\n"
20 printf "$RESULT\n"
21 printf "* please use dasscm to check-in these changes *\n"
22 fi
23 fi
24 fi
[774]25fi
Note: See TracBrowser for help on using the repository browser.