* Script to upload modules to context garden
@ 2011-10-23 2:11 Aditya Mahajan
0 siblings, 0 replies; only message in thread
From: Aditya Mahajan @ 2011-10-23 2:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi all,
I finally got tired of manually uploading new versions of modules to
context garden. So, here is a ruby script that automates the task:
<https://github.com/adityam/contextgarden-update/blob/master/update>
This uses `mechanize` library for HTML scrapping and `highline` library
for user interaction. To use the script, simply run
update [modulename]
The script will prompt you for username and password, then display a list
of all the modules that you own, and you can select a module to update.
Then, the script asks for a new version number and filename for the zip
file and then uploads the module.
If the optional modulename argument is provided, then that module is
automatically selected for update.
I don't try to parse the returned page, but simply dump it to the output.
Hopefully, someone else might find this useful.
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-23 2:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-23 2:11 Script to upload modules to context garden Aditya Mahajan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).