Home Home > GIT Browse > SLE12-SP5
summaryrefslogtreecommitdiff
blob: 71698f37450625a18e30d1a8bb5b189af7f6eb08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Determine the location of the mainline linux git repository to use as a
# reference by other scripts.

gitdir=${LINUX_GIT:-$HOME/linux-2.6}
if ! cd "$gitdir" 2>/dev/null; then
	echo "Error: could not change to LINUX_GIT directory" >&2
	exit 1
fi
unset GIT_DIR
if ! result=$(git rev-parse --git-dir 2>/dev/null); then
        echo "No linux git tree found (please set the \"LINUX_GIT\" environment variable)" >&2
        exit 1
fi
readlink -f "$result"