summaryrefslogtreecommitdiffstats
path: root/tools/compat-init.sh
blob: e8f825a7202abfa32aad814a9d1252fc89a98b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# Ported from main Makefile
MAKE='make'
SED='sed'
SORT='sort'

if [ gmake --help >/dev/null 2>&1 ]; then
    MAKE='gmake'
fi
if [ gsed --help >/dev/null 2>&1 ]; then
    SED='gsed'
fi
if [ gsort --help >/dev/null 2>&1 ]; then
    SORT='gsort'
fi

WGET="wget --no-check-certificate
         --user-agent=$(wget --version |
         $SED -n 's,GNU \(Wget\) \([0-9.]*\).*,\1/\2,p')"