Update KALMAN from SVN: Difference between revisions

From Rsewiki
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
===Update mobotware on KALMAN from SVN===
===Update mobotware on KALMAN from current SVN version===


To update the version used by SMRs (and bode/tustin/jensen/nyquist the day after) do the following:
To update the version used by SMRs (and bode/tustin/jensen/nyquist the day after) do the following:
Line 6: Line 6:
* cd mobotware (your working svn directory for mobotware)
* cd mobotware (your working svn directory for mobotware)
* svn update (get latest version - note the '''SVN version number''')
* svn update (get latest version - note the '''SVN version number''')
* export mobotware part using a script (it asks for the SVN version number):
* export the mobotware part using a script (it asks for the SVN version number):
  $ ./exportMobotware
  $ ./exportMobotware
  exporting mobotware - aumat, mrc, rhd, aurs etc.
  exporting mobotware - aumat, mrc, rhd, aurs etc.
  Enter SVN version number xxx for mobotware-3.xxx.tar.gz: '''23'''
  Enter SVN version number xxx for mobotware-3.xxx.tar.gz: '''246'''
  Export complete.
  Export complete.
  Export complete.
  Export complete.
  ...
  ...
* The full mobotware will be exported and compiled into a new directory: mobotware-3.23
* The full mobotware will be exported and compiled into a new directory: mobotware-3.246


''Transfer to KALMAN''
''Transfer to KALMAN''


* go to that directory
* go to that directory
  $ cd mobotware-3.23
  $ cd mobotware-3.246
* there is here a makefile that can transfer it to kalman, with a variable VER for the destination
* there is here a makefile that can transfer it to kalman, with a variable VER for the destination
  $ make kalman VER='''2012f'''
  $ make kalman VER='''2013e'''
* it will ask for a password twice! (if you do not use shared keys)
* it will ask for a password twice! (if you do not use shared keys)
* NB! the directory '''/opt/smr.2012f''' needs to be established in advance, e.g.  
* NB! the directory '''/opt/smr.2013e''' needs to be established in advance, e.g.  


''Establish a new version directory on kalman''
''Establish a new version directory on kalman''


* go to kalman
* go to kalman
* copy the newest version (here smr.2012f) to the new directory (here smr.2012g) using ''rsync'', and let other VIPs edit the version e.g.:
* copy the newest version (here smr.2013d) to the new directory (here smr.2013e) using ''rsync'', and let other VIPs edit the version e.g.:
  $ ssh kalman
  $ ssh kalman
  $ cd /opt
  $ cd /opt
  $ rsync -rl smr.2012f/* smr.2012g
  $ rsync -rl smr.2013d/* smr.2013e
  $ chmod -R g+w smr.2012g  
  $ chmod -R g+w smr.2012g  


''Make new version the default one''
''Make the new version the default one''


  $ ssh kalman
  $ ssh kalman
  $ cd /opt
  $ cd /opt
  $ mv smr smr-not-used-anymore
  $ mv smr smr-not-used-anymore
  $ ln -s smr.2012g smr
  $ ln -s smr.2013e smr

Latest revision as of 14:43, 26 September 2013

Update mobotware on KALMAN from current SVN version

To update the version used by SMRs (and bode/tustin/jensen/nyquist the day after) do the following:

  • ssh bode.iau.dtu.dk
  • cd mobotware (your working svn directory for mobotware)
  • svn update (get latest version - note the SVN version number)
  • export the mobotware part using a script (it asks for the SVN version number):
$ ./exportMobotware
exporting mobotware - aumat, mrc, rhd, aurs etc.
Enter SVN version number xxx for mobotware-3.xxx.tar.gz: 246
Export complete.
Export complete.
...
  • The full mobotware will be exported and compiled into a new directory: mobotware-3.246

Transfer to KALMAN

  • go to that directory
$ cd mobotware-3.246
  • there is here a makefile that can transfer it to kalman, with a variable VER for the destination
$ make kalman VER=2013e
  • it will ask for a password twice! (if you do not use shared keys)
  • NB! the directory /opt/smr.2013e needs to be established in advance, e.g.

Establish a new version directory on kalman

  • go to kalman
  • copy the newest version (here smr.2013d) to the new directory (here smr.2013e) using rsync, and let other VIPs edit the version e.g.:
$ ssh kalman
$ cd /opt
$ rsync -rl smr.2013d/* smr.2013e
$ chmod -R g+w smr.2012g 

Make the new version the default one

$ ssh kalman
$ cd /opt
$ mv smr smr-not-used-anymore
$ ln -s smr.2013e smr