Commit Graph

26 Commits

Author SHA1 Message Date
Kai Hendry
d56275608e fix traps 2012-07-14 17:58:34 +02:00
Kai Hendry
2436e95bd4 various cleanups 2012-07-07 18:16:15 +02:00
Kai Hendry
34207d4d91 fixes #11 2012-07-03 16:23:57 +02:00
Kai Hendry
84bd5a557e refactored with the help of Geir Hauge from #bash 2012-06-27 12:39:18 +02:00
Kai Hendry
f3bdc2aac0 Made xmlstarlet finding code hopefully more POSIX
http://mywiki.wooledge.org/BashFAQ/081
2012-06-27 12:06:39 +02:00
Matthias Rampke
c6f524b5e5 use shell variable instead of alias
for switching xmlstarlet command. bash doesn't like aliases.
2012-06-26 21:54:19 +02:00
Matthias Rampke
ebc6ce12af remove unportable test syntax
[[ ]] is completely unnecessary, [ ] does the trick fine.
2012-06-26 21:22:16 +02:00
Matthias Rampke
94e310791d re-implement header/data splitting in ed(1)
somehow the original way (stdout/stderr) didn't work in dash
(which is /bin/sh in Debian, and rather limited, that is, a good
testing ground for POSIX shell compatibility)
2012-06-26 21:20:28 +02:00
Matthias Rampke
14b6847205 use printf instead of echo -e
echo is not very portable, printf is well-specified

(fail case: dash's builtin echo doesn't know -e)
2012-06-26 20:44:03 +02:00
Matthias Rampke
05d1e94366 find xmlstarlet even if it is called xml
which is the case with at least the Homebrew (OS X) and pkgsrc (many)
package managers.

FIXME: doesn't check if 'xml' is xmlstarlet
TODO: fail explicitly if no
2012-06-26 20:25:31 +02:00
Matthias Rampke
d3443a2a8a specify template to mktemp(1)
mktemp(1) is not specified by POSIX and accordingly inconsistent
across systems - e.g. non-GNU-implementations requiring that there
be some sort of template specified. this appears to be the simplest
more-or-less portable invocation.

use the user name as part of the name for temporary files.
2012-06-26 20:23:07 +02:00
Matthias Rampke
869ceb0398 use /bin/sh as bash is not available everywhere
the script didn't use bash features anyway (at least as far as I noticed)
2012-06-26 20:22:05 +02:00
Jamie Kitson
d200757e6c Quote tweet 2012-05-31 00:09:54 +01:00
Kai Hendry
43b08e2699 quote 2012-05-10 15:35:02 +08:00
Kai Hendry
ec3ab7c63f small code cleanup 2012-04-25 21:09:07 +08:00
Jamie Kitson
a1c536a967 Resolve shortened urls 2012-03-14 14:39:10 +00:00
Kai Hendry
df971681d4 update readme 2012-01-28 13:44:29 +08:00
Kai Hendry
09827f9ab9 hide verbose messages and print OVER CAPACITY clearly fixes #2 2012-01-15 14:32:19 +08:00
Kai Hendry
1c680703c6 Switch create.cgi to output HTML instead of text to allow for better feedback 2011-11-22 00:22:53 +08:00
Kai Hendry
e401ae0207 Merged good suggestions from pixelbeat_ 2011-11-16 04:21:30 +00:00
Kai Hendry
28b86ee989 check initial fetch is an integer 2011-11-13 20:10:32 +01:00
Kai Hendry
b9bcceace4 tidy up, using Jquery from CDN 2011-11-13 18:52:16 +00:00
Kai Hendry
8c8d4a5a8a fix tabs in Jamie's code & add modeline 2011-11-13 18:34:31 +00:00
JamieKitson
863704da8d expand urls 2011-11-13 17:57:14 +00:00
Kai Hendry
d2d20c5696 refactored 2011-11-05 00:05:08 +01:00
Kai Hendry
7fb4cf145c first commit 2011-11-04 23:55:16 +01:00