]> git.99rst.org Git - irssi-scripts.irssi.org.git/commit
Change modified timestamps to match the old "changed" value
authordequis <redacted>
Thu, 7 Aug 2014 08:49:16 +0000 (05:49 -0300)
committerdequis <redacted>
Thu, 7 Aug 2014 09:37:01 +0000 (06:37 -0300)
commit1cdf8c26f0de0bfa2115722f8ba82b733a71da99
tree62732e18719662a840a9af6f02ab07068ce29427
parent0345d705714e8a545994224047510ee5e26c6543
Change modified timestamps to match the old "changed" value

Started doing it manually, then realized it would take forever. Threw
together an extremely shitty python script using dateutil.parser and
made it output sed code, because yaml libraries don't know the concept
of in-place editing, they just rewrite the damn thing.

The script itself is too awful and non-reusable to publish, the only
part worth mentioning is the sed output, a bunch of lines like this:

/^  filename: "xmms.pl"/ {n; s/2008-05-17 17:39:09/2004-01-15 00:00:00/}

The "n" command grabs the next line. That was neat.

Scripts with modified date after 2011 weren't touched - most of the
incorrect dates are 2008 or 2009.

I reviewed the dateutil parsed dates - that library is really good.
_data/scripts.yaml
git clone https://git.99rst.org/PROJECT