Helper script; how to contribute it.

If your topic doesn't fit anywhere else, put it here.

Moderator: joepal

Helper script; how to contribute it.

Postby SaltyCowdawg » Wed Jan 15, 2014 2:38 pm

Hey Gang,

I wrote a script that Linux users might find useful to them that does the following:

1) backs up the version of MH currently installed. (renames it actually to mh-a-8-XXXX) where XXXX is the svn version number.
2) downloads the newest version
3) runs download_assets.py to update the stuff in the asssets locker.

I also have a small script meant to go into ${HOME}/bin that just performs a change of directory into the currently version of MH and executes makehuman.

Any interest? Too simple?

The script is written in generic Perl.
Peter L. Berghold <peter@berghold.net> or <Salty.Cowdawg@gmail.com>
Retired IT with 30+ years in the business
User avatar
SaltyCowdawg
 
Posts: 460
Joined: Fri Aug 09, 2013 3:12 pm
Location: Ayden NC

Re: Helper script; how to contribute it.

Postby duststorm » Wed Jan 15, 2014 2:49 pm

If you want to be able to jump back in history, doing an svn checkout might be a better option.
Every full download of MH means another 100MB on disk, so it grows rapidly. While 90% of the data is probably the same between two folders.

If you would use the svn version you wouldn't have to download a package of 100MB every day. A checkout of the latest revision only downloads the changes, so it takes only seconds.

For keeping history of the download script there is no official solution though. Personally I have a small modification to the download script that renames old files instead of overwriting them.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: Helper script; how to contribute it.

Postby SaltyCowdawg » Wed Jan 15, 2014 5:07 pm

forgot a step... deletes the n-2 version.

Having the n-1 version saved me when the women's clothing all disappeared! :-D
Peter L. Berghold <peter@berghold.net> or <Salty.Cowdawg@gmail.com>
Retired IT with 30+ years in the business
User avatar
SaltyCowdawg
 
Posts: 460
Joined: Fri Aug 09, 2013 3:12 pm
Location: Ayden NC

Re: Helper script; how to contribute it.

Postby duststorm » Wed Jan 15, 2014 7:54 pm

SaltyCowdawg wrote:forgot a step... deletes the n-2 version.

What do you mean?

I modified download_assets so that it never overwrites, instead it just appends .001.old .002.old etc

But it's probably a good thing that the old clothing has disappeared. ;) We hope to have a good selection of quality clothes available soon, but the library is already growing at a good pace.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: Helper script; how to contribute it.

Postby SaltyCowdawg » Wed Jan 15, 2014 8:49 pm

Dustorm,


n = current SVN version of MH
n-1 = "yesterday's" version.
n-2 = "day before yesterday's" version

What I meant was my little script does things in this order:

1) Remove the n-2 SNV version of MH.

2) Move the n-1 to n-2

3) svn get .....

4) rename n to mh-#### where #### is the svn version ID.

Keeps me sane.
Peter L. Berghold <peter@berghold.net> or <Salty.Cowdawg@gmail.com>
Retired IT with 30+ years in the business
User avatar
SaltyCowdawg
 
Posts: 460
Joined: Fri Aug 09, 2013 3:12 pm
Location: Ayden NC

Re: Helper script; how to contribute it.

Postby duststorm » Wed Jan 15, 2014 8:59 pm

Ah ok :)
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium


Return to General discussions about makehuman

Who is online

Users browsing this forum: No registered users and 1 guest