summaryrefslogtreecommitdiff
path: root/scripts/get-deb-component-from-git
blob: 4bdfad59d898b37bb22697c992548f989fa43790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

if [ ! -z "$EMC2_HOME" ]; then
    source $EMC2_HOME/scripts/githelper.sh
else
    if [ ! -d debian -o ! -d src ]; then
        echo "this script must be run from the root of the source tree (the directory with debian and src in it)"
        exit 1
    fi
    source scripts/githelper.sh
fi

githelper $1

echo $DEB_COMPONENT