forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Semi-automated PSPlibdoc Updater

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Mon Oct 01, 2007 12:25 pm    Post subject: Semi-automated PSPlibdoc Updater Reply with quote

Out of boredom I made a little toolkit for generating a new psplibdoc.xml file based on the HTML files you can get from SilverSpring/moonlight's doc project.

Included in this package is the current version of the doc for 3.5x, with all the import-related pages removed (since they're not used in the libdoc). There are also example scripts that will show you how to generate input for the second stage of the toolkit, on both Windows and Linux. (Note: requires PHP.)

The second stage is easer; in Windows you can just drag+drop the generated input files onto builder.exe, or in Linux you can build a binary and run 'builder <input file name>'.

To get a current snapshot of the doc for any firmware, go to http://silverspring.lan.st/, then copy+paste the link for the firmware you want into a command prompt/shell/whatever for use with wget:
Code:
wget -r <url>


It'll download to ./silverspring.lan.st/<firmware number>; copy this folder into the same place as builder/nids.php/etc, then switch to that folder run
Code:
do <name of the firmware folder>


I know, I know; this is a bit garbled.

Here's an example of what I mean, for firmware 1.00. Assume that you start in the 'release' folder.
Code:
wget -r http://silverspring.lan.st/1.00/index.html
mv silverspring.lan.st/1.00 .]
do 1.00
./builder 1.00.input

In Windows, use '\' instead of '/' and 'move' instead of 'mv'.

And... that should be it. Voila, you have a psplibdoc for the firmware of your choice. Example output for 3.5x is here, styled with the display stylesheet included in the SVN.

Sheesh, the explanation is a lot harder than actually doing it...

(download link, in case you missed it)
Back to top
View user's profile Send private message
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Mon Oct 01, 2007 12:45 pm    Post subject: Also... Reply with quote

If you don't feeling like raping silverspring's bandwidth, I've pre-made all the libdocs for every firmware he has available. Get them right here.

Nota bene: if you get weird HTML stuff in the XML output (e.g. as the name of a library) it's because he has links in a couple of his pages. If you edit out the links in Notepad or something similar, it'll work fine.

---

and now that I look more closely, I notice that he doesn't list all the modules from all those firmwares... e.g. libssl.prx from 3.5x. he says he has a lot to update ;)
Back to top
View user's profile Send private message
jas0nuk



Joined: 27 Apr 2006
Posts: 137

PostPosted: Mon Oct 01, 2007 9:06 pm    Post subject: Reply with quote

Woohoo... an (unofficial) update to libdoc! :p
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Fri Oct 05, 2007 6:05 am    Post subject: Reply with quote

The (prebuilt) XML's will be frequently updated Right?

at
http://f6y.ath.cx/pspdev/libdocs/
_________________
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Back to top
View user's profile Send private message
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Mon Oct 15, 2007 11:14 am    Post subject: Reply with quote

Well, I'm not sure how frequent it will be, but whenever SilverSpring makes some major changes (and lets me know) I'll update them.
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Thu Dec 27, 2007 10:50 am    Post subject: Reply with quote

Would you mind cooking a Latest one for 3.71?

Thanks.
_________________
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Fri Dec 28, 2007 12:29 am    Post subject: Reply with quote

huh i'm looking for this libdoc builder or at least for the webpage where to find the last libdoc for each version (well i guess libdoc for fw3.70 is my priority), but any link given by FreePlay doesn't seem to work here.
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Fri Dec 28, 2007 8:39 am    Post subject: Reply with quote

From Freeplay's site
Quote:
The original site is on a now-dead hard drive.


So he's obviously missing some stuff :)
Back to top
View user's profile Send private message AIM Address
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Mon Dec 31, 2007 6:56 pm    Post subject: Reply with quote

Yeah, it's... sort of dead. I think SilverSpring probably still has it somewhere.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group