mirror of
https://github.com/jarun/advcpmv.git
synced 2026-02-01 13:17:41 +01:00
create install script
This commit is contained in:
22
install.sh
Normal file
22
install.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
ADVCPMV_VERSION=${1:-0.9}
|
||||
CORE_UTILS_VERSION=${2:-9.0}
|
||||
|
||||
mkdir advcpmv
|
||||
(
|
||||
cd advcpmv
|
||||
wget http://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/
|
||||
wget 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
|
||||
)
|
||||
Reference in New Issue
Block a user