dockcross/imagefiles/build-and-install-openssh.sh
Matt McCormick ba72994b41
common: Fix bash shell script invocation
`#!/usr/bin/env bash` should be used to avoid hard paths.

To address:

  dockcross-manylinux-x64: bad interpreter: /bin/bash^M: no such file or directory
2018-08-20 18:12:32 -04:00

23 lines
384 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
OPENSSH_ROOT=V_7_6_P1
cd /usr/src
curl -LO https://github.com/openssh/openssh-portable/archive/${OPENSSH_ROOT}.tar.gz
tar -xvf ${OPENSSH_ROOT}.tar.gz
rm -f ${OPENSSH_ROOT}.tar.gz
OPENSSH_SRC_DIR=openssh-portable-${OPENSSH_ROOT}
cd ${OPENSSH_SRC_DIR}
autoreconf
./configure --prefix=/usr/local
make -j1 install
cd /usr/src
rm -rf ${OPENSSH_SRC_DIR}