2018-03-22 15:33:59 +01:00
|
|
|
# app4triqs
|
2018-03-28 10:59:05 +02:00
|
|
|
|
|
|
|
An example application using cpp2py and triqs
|
|
|
|
---------------------------------------------
|
|
|
|
|
|
|
|
To use 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)
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/triqs/app4triqs --branch unstable mynewapp
|
|
|
|
cd mynewapp
|
2018-08-31 00:05:04 +02:00
|
|
|
git remote set-url origin https://github.com/myuser/mynewapp
|
2018-03-28 10:59:05 +02:00
|
|
|
find . -type f | grep -v .git | xargs sed -i 's/app4triqs/mynewapp/g; s/APP4TRIQS/MYNEWAPP/g'
|
2018-08-31 00:05:04 +02:00
|
|
|
find . | grep -v .git | xargs rename 's/app4triqs/mytriqsapp/'
|
2018-03-28 10:59:05 +02:00
|
|
|
git add -A
|
|
|
|
git commit -m "Create mynewapp from github.com/triqs/app4triqs skeleton"
|
|
|
|
git push
|
|
|
|
```
|
|
|
|
|
|
|
|
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
|
|
|
|
```
|