Educational: Difference between revisions

From The Yambo Project
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:


== Add a new tutorial ==
== Add a new tutorial ==
  % cd tutorials
%pwd
  % mkdir TEST
  /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


At this point fill the TEST folder with the SAVE, inputs, outputs... Add to the repo the text files and commit.
Now that all files are there type


To upload the TEST just go up of tutorials and type
%touch SAVE/.empty
%git add SAVE/.empty REFERENCE


  % ./educational.pl -t TEST -up
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.
and the game is done.

Latest revision as of 14:53, 23 January 2020

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.