mirror of
https://github.com/jarun/advcpmv.git
synced 2026-02-01 13:17:41 +01:00
Add patch for coreutils v8.30
Source: https://github.com/atdt/advcpmv/pull/9
This commit is contained in:
35
README.md
35
README.md
@@ -10,19 +10,42 @@ find it via the Internet Archive:
|
||||
https://web.archive.org/web/20131115171331/http://beatex.org/web/advancedcopy.html
|
||||
|
||||
advcpmv-0.5-8.21.patch was the last patch released by the author (on February
|
||||
14, 2013). advcpmv-0.6-8.24.patch is simply a rebase of that on top of the 8.24
|
||||
14, 2013). advcpmv-0.6-8.24.patch (and following) are simply a rebase of that on top of the 8.24
|
||||
version of coreutils.
|
||||
|
||||
## Build instructions
|
||||
|
||||
```
|
||||
wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.21.tar.xz
|
||||
tar xvJf coreutils-8.21.tar.xz
|
||||
cd coreutils-8.21/
|
||||
wget https://raw.githubusercontent.com/schollz/advcpmv/master/advcpmv-0.5-8.21.patch
|
||||
patch -p1 -i advcpmv-0.5-8.21.patch
|
||||
wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.30.tar.xz
|
||||
tar xvJf coreutils-8.30.tar.xz
|
||||
cd coreutils-8.30/
|
||||
wget https://raw.githubusercontent.com/mrdrogdrog/advcpmv/master/advcpmv-0.5-8.30.patch
|
||||
patch -p1 -i advcpmv-0.5-8.30.patch
|
||||
./configure
|
||||
make
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Change your behaviour
|
||||
|
||||
You can install the binaries and use `cpg -g` and `mvg -g` instead of cp and mv
|
||||
```
|
||||
sudo mv ./src/cp /usr/local/bin/cpg
|
||||
sudo mv ./src/mv /usr/local/bin/mvg
|
||||
```
|
||||
|
||||
### Alias
|
||||
|
||||
You can install the binaries and create aliases for bash (or whatever you use)
|
||||
```
|
||||
sudo mv ./src/cp /usr/local/bin/advcp
|
||||
sudo mv ./src/mv /usr/local/bin/advmv
|
||||
echo alias cp '/usr/local/bin/advcp -g' >> ~/.bashrc
|
||||
echo alias mv '/usr/local/bin/advmv -g' >> ~/.bashrc
|
||||
```
|
||||
|
||||
## Upstream merge
|
||||
|
||||
I sent the patch to the team, that maintains the GNU CoreUtils.
|
||||
They won't merge this patch, because mv and cp are feature complete.
|
||||
|
||||
Reference in New Issue
Block a user