summaryrefslogtreecommitdiffstats
path: root/tools/compat-init.sh
blob: 7ca393f5fcea073c0cb09197a840e03442f750e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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 --user-agent=$(wget --version |
         $SED -n 's,GNU \(Wget\) \([0-9.]*\).*,\1/\2,p')"