mirror of
https://github.com/jarun/advcpmv.git
synced 2026-02-01 13:17:41 +01:00
simplified directories
This commit is contained in:
@@ -13,7 +13,8 @@ advcpmv-0.5-8.21.patch was the last patch released by the author (on February 14
|
|||||||
Run the following command which will download, patch, then compile coreutils, producing two files: `./advcpmv/advcp` and `./advcpmv/advmv`.
|
Run the following command which will download, patch, then compile coreutils, producing two files: `./advcpmv/advcp` and `./advcpmv/advmv`.
|
||||||
|
|
||||||
```
|
```
|
||||||
bash -c "$(wget -O- https://raw.githubusercontent.com/jarun/advcpmv/master/install.sh)"
|
curl https://raw.githubusercontent.com/jarun/advcpmv/master/install.sh --create-dirs -o ./advcpmv/install.sh"
|
||||||
|
(cd advcpmv && bash install.sh)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
28
install.sh
28
install.sh
@@ -3,20 +3,16 @@
|
|||||||
ADVCPMV_VERSION=${1:-0.9}
|
ADVCPMV_VERSION=${1:-0.9}
|
||||||
CORE_UTILS_VERSION=${2:-9.0}
|
CORE_UTILS_VERSION=${2:-9.0}
|
||||||
|
|
||||||
mkdir 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 advcpmv
|
cd coreutils-$CORE_UTILS_VERSION/
|
||||||
wget http://ftp.gnu.org/gnu/coreutils/coreutils-$CORE_UTILS_VERSION.tar.xz
|
wget https://raw.githubusercontent.com/jarun/advcpmv/master/advcpmv-$ADVCPMV_VERSION-$CORE_UTILS_VERSION.patch
|
||||||
tar xvJf coreutils-$CORE_UTILS_VERSION.tar.xz
|
patch -p1 -i advcpmv-$ADVCPMV_VERSION-$CORE_UTILS_VERSION.patch
|
||||||
rm coreutils-$CORE_UTILS_VERSION.tar.xz
|
./configure
|
||||||
(
|
make
|
||||||
cd coreutils-$CORE_UTILS_VERSION/
|
cp ./src/cp ../advcp
|
||||||
wget https://raw.githubusercontent.com/jarun/advcpmv/master/advcpmv-$ADVCPMV_VERSION-$CORE_UTILS_VERSION.patch
|
cp ./src/mv ../advmv
|
||||||
patch -p1 -i advcpmv-$ADVCPMV_VERSION-$CORE_UTILS_VERSION.patch
|
)
|
||||||
./configure
|
rm -rf coreutils-$CORE_UTILS_VERSION
|
||||||
make
|
|
||||||
cp ./src/cp ../advcp
|
|
||||||
cp ./src/mv ../advmv
|
|
||||||
)
|
|
||||||
rm -rf coreutils-$CORE_UTILS_VERSION
|
|
||||||
)
|
|
||||||
Reference in New Issue
Block a user