Files
advcpmv/install.sh
Corey Newton 0df9ccf0f4 switch install script from HTTP to HTTPS for tarball
Rather than verifying signatures, switching to "https://ftp..."
removes any insecure connections entirely.
2025-10-27 07:01:14 -07:00

21 lines
582 B
Bash

#!/bin/sh
set -e
ADVCPMV_VERSION=${1:-0.9}
CORE_UTILS_VERSION=${2:-9.5}
curl -LO https://ftp.gnu.org/gnu/coreutils/coreutils-$CORE_UTILS_VERSION.tar.xz
tar xvJf coreutils-$CORE_UTILS_VERSION.tar.xz
rm coreutils-$CORE_UTILS_VERSION.tar.xz
(
cd coreutils-$CORE_UTILS_VERSION/
curl -LO https://raw.githubusercontent.com/jarun/advcpmv/master/advcpmv-$ADVCPMV_VERSION-$CORE_UTILS_VERSION.patch
patch -p1 -i advcpmv-$ADVCPMV_VERSION-$CORE_UTILS_VERSION.patch
./configure
make
cp ./src/cp ../advcp
cp ./src/mv ../advmv
)
rm -rf coreutils-$CORE_UTILS_VERSION