Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 502196 | Differences between
and this patch

Collapse All | Expand All

(-)sslh-v1.16.orig/genver.sh (-4 / +13 lines)
Lines 10-19 Link Here
10
if ! `(git status | grep -q "On branch") 2> /dev/null`; then
10
if ! `(git status | grep -q "On branch") 2> /dev/null`; then
11
        # If we don't have git, we can't work out what
11
        # If we don't have git, we can't work out what
12
        # version this is. It must have been downloaded as a
12
        # version this is. It must have been downloaded as a
13
        # zip file. Github creates the zip file with all
13
        # zip file. 
14
        # files dated from the last change: use the
14
        
15
        # Makefile's modification time as a release number
15
        # If downloaded from the release page, the directory
16
	release=zip-`stat -c "%y" Makefile | sed 's/ .*//'`
16
        # has the version number.
17
        release=`pwd | sed s/.*sslh-// | grep "[[:digit:]]"`
18
        
19
        if [ "x$release" = "x" ]; then
20
            # If downloaded from the head, Github creates the
21
            # zip file with all files dated from the last
22
            # change: use the Makefile's modification time as a
23
            # release number
24
            release=head-`stat -c "%y" Makefile | sed 's/ .*//'`
25
        fi
17
fi
26
fi
18
27
19
if head=`git rev-parse --verify HEAD 2>/dev/null`; then
28
if head=`git rev-parse --verify HEAD 2>/dev/null`; then

Return to bug 502196