Educational

From The Yambo Project
Jump to navigation Jump to search

Clone

% git clone git@github.com:yambo-code/educational.git
% cd educationl/tutorials
% git clone git@github.com:yambo-code/tutorials.git ./

Download all SAVEs

% ./educational.pl -download -tutorial all

Add a new tutorial

%pwd
 /home/marini/Yambo/sources/git/educational
%cd tutorials
%mkdir TEST
%cd TEST/
%mkdir SAVE
%mkdir REFERENCE
%cp [WHEREVER]ns* SAVE/
%cp [[WHEREVER]r-* REFERENCE
%ls -R
.:
REFERENCE  SAVE
./REFERENCE:
r_pippo
./SAVE:
ns.db1    ns.wf

Now that all files are there type

%touch SAVE/.empty
%git add SAVE/.empty REFERENCE

Good. Now go up twice of TEST

%pwd
/home/marini/Yambo/sources/git/educational/

and do

%./educational.pl -up -tutorial TEST

and the game is done.

Commit the new tutorial

Do not forget to commit the tutorial

%git commit -a
%git push

and the game is done.