mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 20:34:38 +01:00
.github/ISSUE_TEMPLATE | ||
c++/app4triqs | ||
doc | ||
python/app4triqs | ||
share | ||
test | ||
.clang-format | ||
.clang-tidy | ||
.dockerignore | ||
.travis.yml | ||
ChangeLog.md | ||
CMakeLists.txt | ||
COPYING.txt | ||
Dockerfile | ||
Jenkinsfile | ||
LICENSE.txt | ||
README.md |
app4triqs
A skeleton for a TRIQS application
To adapt this skeleton for a new triqs application, the following steps are necessary:
Create a repository, e.g. https://github.com/myuser/mynewapp
Run the following commands (replacing myuser and mynewapp accordingly)
git clone https://github.com/triqs/app4triqs --branch unstable mynewapp
cd 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 d | grep -v .git | xargs rename app4triqs mynewapp
find . -type f | grep -v .git | xargs rename app4triqs mynewapp
git add -A
git commit -m "Create mynewapp from github.com/triqs/app4triqs skeleton"
git push
Depending on which version of the rename command you are using you may need to replace the aforementioned rename commands as follows
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, replace the http link accordingly
https://github.com/myuser/mynewapp --> git@github.com:myuser/mynewapp