jeshyr: Pile of thick books labelled "Geek" (Geek)
Ricky Buchanan ([personal profile] jeshyr) wrote in [site community profile] dw_dev2011-08-21 11:13 pm
Entry tags:

Potentially Useful Do-Everything Script

[BTW: I am editing this post as the script is updated so refer back for further edits.]

I'm just a newbie at developing - submitted my first patch today - and one of the things one has to do to get up and running is to read about 5 tons of documentation and figure out workflows. Since I was having lots of potentially useful scripts suggested to me by developers and by the wiki and since I am at heart a toolmaker I put them all together and documented everything to the best of my ability.

I think this works but it's way past my bedtime right now and I haven't tested every single combination so if it eats your code, your data, or your firstborn child be in on your own head. OTOH I think it should work right!





For new folks, you need to copy everything in the text box above and paste it into a new file on your Dreamhack. I suggest you put it in the ~/bin directory and call the file 'dw', because then your system matches mine :). Then you need to make that file executable by typing 'chmod +755 ~/bin/dw' or whatever filename you used. After that you can type 'dw' and it should execute just fine, it'll give you instructions.



I would welcome fixes, constructive criticism, or anything else you have to offer. Feel free to use this in any way you want, etc.

r
wychwood: Joe Kennedy Sr demanding to know baby Ted's ambitions (gen - unambitious baby Ted)

[personal profile] wychwood 2011-08-21 01:43 pm (UTC)(link)
That looks really nifty! I have stolen it :)

(...also I changed "Exitting" to "Exiting", because spelling is weird)
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2011-08-22 05:12 am (UTC)(link)
FYI, to put it in the code box, it's:

<textarea rows='5' cols='80'>paste script or HTML or whatever you want cut & pastable without the site interpreting it</textarea>

which gives you:



You can change the rows & cols to make it bigger or smaller.
pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)

[personal profile] pne 2011-08-22 10:39 am (UTC)(link)
In the self-documentation/usage bit at the bottom you claim that "s c" is an alias for both "sync cvs" and "sync live" :) Second one should be "s l" instead.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2012-08-20 04:35 am (UTC)(link)
Ohai Ricky. Do you want to update the script here for git, or is that something you'd like to pass on to someone else? (EIther is fine! I love the idea of your script, and I just want to make sure that we have something like it once we move over to git. For greater justice *g*)
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2013-03-21 06:28 pm (UTC)(link)
http://wiki.dwscoalition.org/wiki/index.php/Dev_Maintenance#dwu_-_Updating_the_repos now has an example for Git, so it might be worth adding that as a "gitupdate" command or something like that? I'm going to test some of it out in a bit, so can come back with edits.

Also, it might be worth adding idiot-proof instructions at the top, explaining that you have to copy the stuff in the box into a new file called ~/bin/doeverything and give it the right permissions and so on.