I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

template.sh

Template script - Andriy Lesyuk, 13 Nov 2011 17:53

Download (326 Bytes)

 
1
#!/bin/sh
2

    
3
SCM_REPO_PATH=$1
4
SCM_TYPE=$2
5
SCM_PROJECT=$3
6

    
7
SCM_REPO_NAME=$(basename $SCM_REPO_PATH)
8
SCM_REPO_ROOT=$(dirname $SCM_REPO_PATH)
9

    
10
case "$SCM_TYPE" in
11
    svn)
12
        ;;
13
    git)
14
        ;;
15
    mercurial)
16
        ;;
17
    bazaar)
18
        ;;
19
    *)
20
        echo "SCM not supported: $SCM_TYPE" >&2
21
        ;;
22
esac
23

    
24
exit 0
Terms of use | Privacy policy