3
0
mirror of https://github.com/triqs/dft_tools synced 2024-07-17 16:33:46 +02:00

Update README to account for alternate rename commands

This commit is contained in:
Nils Wentzell 2019-04-15 12:20:35 -04:00
parent 7f29a3f624
commit b1ba2d4d68

View File

@ -14,12 +14,21 @@ git clone https://github.com/triqs/app4triqs --branch unstable mynewapp
cd mynewapp cd mynewapp
git remote set-url origin https://github.com/myuser/mynewapp git remote set-url origin https://github.com/myuser/mynewapp
find . -type f | grep -v .git | xargs sed -i 's/app4triqs/mynewapp/g; s/APP4TRIQS/MYNEWAPP/g' find . -type f | grep -v .git | xargs sed -i 's/app4triqs/mynewapp/g; s/APP4TRIQS/MYNEWAPP/g'
find . | grep -v .git | xargs rename 's/app4triqs/mytriqsapp/' find . -type d | grep -v .git | xargs rename app4triqs mynewapp
find . -type f | grep -v .git | xargs rename app4triqs mynewapp
git add -A git add -A
git commit -m "Create mynewapp from github.com/triqs/app4triqs skeleton" git commit -m "Create mynewapp from github.com/triqs/app4triqs skeleton"
git push git push
``` ```
Depending on which version of the rename command you are using you may
need to replace the aforementioned rename commands as follows
```bash
find . -type d | grep -v .git | xargs rename 's/app4triqs/mynewapp/'
find . -type f | grep -v .git | xargs rename 's/app4triqs/mynewapp/'
```
If you prefer to use the SSH interface to the remote repository, If you prefer to use the SSH interface to the remote repository,
replace the http link accordingly replace the http link accordingly