Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | CONFIG="/etc/dasscm.conf"
|
---|
4 |
|
---|
5 | if [ -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
|
---|
25 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.