summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-03-20Make get_url() and convert_to_raw() independent of choice of service. Define ↵Bo Ørsted Andresen
regex'es in a ${service}_REGEX array where needed. Default to get Location from stderr in get_url() where no regex is specified.
2007-03-20Make post_data() independent of choice of service. Define POST data format ↵Bo Ørsted Andresen
in a ${service}_POST array for each service.
2007-03-20Put input for warn_size() and verify_url() in ${service}_WARNS arrays rather ↵Bo Ørsted Andresen
than hard coding it in the functions.
2007-03-20Generalize show() and use it in show_languages() and ↵Bo Ørsted Andresen
show_expiration_options(). Store rafb expiration message in the rafb array rather than in show_expiration_options(). Remove no_support() as it's only used in one place now.
2007-03-20Use verify() directly instead of verify_language() and verify_expiration(). ↵Bo Ørsted Andresen
Detect value and count methods by the existence of ${service}_${type}_COUNT/VALUES. Use instead of _ in service definitions arrays.
2007-03-20Define urls for each service in a var for that service rather than ↵Bo Ørsted Andresen
SERVICE_URLS and SERVICE_URLS_RAW. Calculate indentation for show_services() rather than hard coding it.
2007-03-20Major reordering of service definitions and functions.Bo Ørsted Andresen
2007-03-20Fix -- handling. Die on unrecognized options.Bo Ørsted Andresen
2007-03-14Use ((i++)) instead of let "i++".Bo Ørsted Andresen
2007-03-14Change header a bit.Bo Ørsted Andresen
2007-03-14Use a print() function to print multiple lines with die() or show_usage(). ↵Bo Ørsted Andresen
Tweak no_argument() so the error message makes more sense (imo). Fix --long-opt="this_value_contains_an_=_sign". Fix get_filenames to record multiple files rather than the first file multiple times. This bug was triggered only by doing: `wgetpaste -- file1 file2`.
2007-03-14Further optimizations for size. Fix bug with verify() counting from 0 ↵Bo Ørsted Andresen
instead of 1. Collapse need_stdout() into get_url(). Let get_recipient print ${SERVICE} with _RAW isn't an argument. Add header() and no_support() helper functions to print almost identical messages. Bump to version 2.1 given the number of changes since 2 was released.
2007-03-14Make it possible to configure --info(-only) to run something else than ↵Bo Ørsted Andresen
`emerge --info --ignore-default-opts` by setting INFO_COMMAND and INFO_ARGS in /etc/wgetpaste or ~/.wgetpaste.
2007-03-13Fix a couple of typos.Bo Ørsted Andresen
2007-03-09Use die whereever it's feasible. Optimize the options reordering.Bo Ørsted Andresen
2007-03-09Fix support for multiple files specified after --Bo Ørsted Andresen
2007-03-09Make it easy to paste multiple files.Bo Ørsted Andresen
2007-03-09A few more optimizations and changed error handling. show_usage is no longer ↵Bo Ørsted Andresen
shown unless specifically requested.
2007-03-09Optimize for size even more with show() and verify(). Merged from ↵Bo Ørsted Andresen
branches/getopts r74.
2007-03-08Merge optimizations (for size) from the getopts branch.Bo Ørsted Andresen
2007-03-07Use == instead of =~. This is more reliable and works with Bash 2.05.Bo Ørsted Andresen
2007-03-07A few optimizations.Bo Ørsted Andresen
2007-03-07Allow short options to be grouped. Convert --long-opt=foo to --long-opt foo.Bo Ørsted Andresen
2007-03-07Add ; to description with --infoBo Ørsted Andresen
2007-03-06Make it possible to set default nick and language on a per service basis too.Bo Ørsted Andresen
2007-03-06Replace two huge if-else-if-else's with one case-esac and one small if-fi.Bo Ørsted Andresen
2007-03-06Add support for --info and --info-only.Bo Ørsted Andresen
2007-03-06Add an additional newline between commands.Bo Ørsted Andresen
2007-03-06Make it possible to specify multiple commands by invoking -c more than once.Bo Ørsted Andresen
2007-03-06Make --command by using `bash -c "${COMMAND}"`.Bo Ørsted Andresen
2007-03-06Cosmetic fix. Reorder wgetpaste --help.Bo Ørsted Andresen
2007-03-06--command should paste what goes to stderr too.Bo Ørsted Andresen
2007-03-06Add support for --command.Bo Ørsted Andresen
2007-03-01Typo.Bo Ørsted Andresen
2007-02-28Drop stgraber. osl provides almost the same and seems more obvious to support.Bo Ørsted Andresen
2007-02-28Add pastebin.osuosl.org.Bo Ørsted Andresen
2007-02-28Minor comment fix.Bo Ørsted Andresen
2007-02-28Add a comment and simplify instructions for --xcut and setting defaults.Bo Ørsted Andresen
2007-02-28Fall back to using --post-data if a temporary file for --post-file could not ↵Bo Ørsted Andresen
be created.
2007-02-28Use '_' instead of '\ ' to connect values in language and expiration arrays. ↵Bo Ørsted Andresen
Substitute '_' with ' ' when using the arrays.
2007-02-28r27 broke everything. When the exclamation mark in ${!foo} is removed you ↵Bo Ørsted Andresen
get the values rather than the indexes. This fixes everything again. let "i = i + 1" is used where an index is actually required. This means that the script should work on Bash >= v2.05 now.
2007-02-28Remove usage of . The exclamation mark isn't needed.Bo Ørsted Andresen
2007-02-28Now really add --raw. Fix bug in show_url for raw urls.Bo Ørsted Andresen
2007-02-28Add support for --raw for services that support that. Make the rafb.net url ↵Bo Ørsted Andresen
printed to the user prettier (by hiding paste.php which is only used internally).
2007-02-28show_expiration_options() for rafb now shows that pastes on rafb.net expires ↵Bo Ørsted Andresen
after 24 hours.
2007-02-28Add --expiration support for stgraber. Since it doesn't have the desired ↵Bo Ørsted Andresen
default (1 week) this also adds support for overriding the default expiration for 1 service only by setting DEFAULT_EXPIRATION_.
2007-02-28Add support for yet another pastebin service. stgraber has syntax ↵Bo Ørsted Andresen
highlighting for diffs and many more.
2007-02-28Add support for --list-expiration and for setting --expiration since ↵Bo Ørsted Andresen
pastebin.ca has support for that. Bump version to 2 as it now appears to be feature complete.
2007-02-28Add pastebin.ca (which has Bash highlighting). It needs stdout output from ↵Bo Ørsted Andresen
wget. Generalize show_languages().
2007-02-28Now really add --xcut.Bo Ørsted Andresen