summaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)Author
2014-03-05teach libremessages:setup_traps to be able to use a custom signal handlerLuke Shumaker
2014-02-02src/lib/Makefile: fix extra files from being included in libexecsLuke Shumaker
2014-02-02Normalize to use the string "Copyright (C)"Luke Shumaker
2014-02-02I forgot to bump the copyright year on all the files I've touched this yearLuke Shumaker
2014-01-20normalize to use >&2 instead of /dev/stderrLuke Shumaker
2014-01-20libremessages: add a setup_traps routineLuke Shumaker
2014-01-18Update libremessages.1.ronnLuke Shumaker
2014-01-05src/lib/: misc touch-upLuke Shumaker
2014-01-05src/lib/: set TEXTDOMAIN differently for internal messagesLuke Shumaker
This allows us to fix the long-standing bug that libremessages forces TEXTDOMAIN=libretools
2014-01-05update to the new devtoolsLuke Shumaker
2014-01-03Phase out DIFFTOOL for DIFFPROG (issue #438)Luke Shumaker
https://labs.parabola.nu/issues/438
2013-11-04libremessages(1): clarify when gettext is used.Luke Shumaker
2013-10-08conf.sh.3: fix the reference to {get,set}_conf_makepkg in the BUGS sectionLuke Shumaker
2013-10-07(oops) I missed an instance of get_conf_makepkg.Luke Shumaker
2013-10-04conf.sh: generalize {get,set}_conf_makepkg to {get,set}_varLuke Shumaker
2013-10-02Add documentation for lib/Luke Shumaker
* Add a bunch of man-pages * Add some comments to conf.sh * Add more information to librelib:usage()
2013-09-26Makefile: create a standard 'pot' targetLuke Shumaker
2013-09-23Makefile: fix xgettext rulesLuke Shumaker
2013-09-12Merge branch 'fauno~2' (early part) into masterLuke Shumaker
2013-09-11libreblacklist: Fix a bug in the -h flag, adjust the unit test to catch it.Luke Shumaker
2013-09-11librelib: Internationalize (actually use the internationalization stuff)Luke Shumaker
2013-09-11libremessages: add a few more message routines, and make them gettext-aware.Luke Shumaker
- Don't set LANG=C in common.sh - Move TEXTDOMAIN stuff into common.sh; so devtools stuff will use it. - Add _(): Basically an alias for `gettext`, but falls back if gettext is not available. - Add panic(): First showed up in `distcc-tool`, does what it sounds like. - Add prose(), bullet(), and flag(): they do word wrapping and such to make it easy to internationalize `--help` text. - Teach common.mk how to make .pot files based on these routines.
2013-09-11Make common-devtools.mk unnecessary. Move devtools chroot stuff into ↵Luke Shumaker
chroot-tools
2013-09-11conf.sh: touch up quotingLuke Shumaker
2013-06-27add {load,unset}_PKGBUILD to conf.sh, use it.Luke Shumaker
There are a bunch of caveats to loading a PKGBUILD file. This way it is all done correctly in one place. unset_PKGBUILD unsets any functions and variables that are normally set in a PKGBUILD. The list is far more complete than any existing implementation. load_PKGBUILD loads the file given, or "./PKGBUILD" if none is given. But first it calls unset_PKGBUILD and then sets CARCH.
2013-06-23mv src/librelib src/lib/ # and split librelib into a separate packageLuke Shumaker
2013-06-23mv src/devtools/lib/common.sh src/lib/ # and add common-devtools.mkLuke Shumaker
2013-06-13lib/conf.sh: remove INCLUDE_CONF_SH line; everything has been migratedLuke Shumaker
2013-06-08libreblacklist: fix a few bugsLuke Shumaker
- set -e didn't work in blacklist-update when followed by || - it prompted before overwriting the local blacklist
2013-06-05libreblacklist: fix call to check_varsLuke Shumaker
2013-06-05Double bracket ==/</> compare lexicographically, not numerically.Luke Shumaker
Unfortunately for me, that means that it works correctly *most* of the time. But, for example, [[ 10 < 2 ]], and negatives don't work.
2013-06-05conf.sh: add a mechanism to save environmental variablesLuke Shumaker
This mimics the behavior of makepkg.
2013-06-05conf.sh: fix leaked local variablesLuke Shumaker
2013-06-05lib/conf.sh: respect a customized HOME variableLuke Shumaker
2013-06-05Add tests for the libreblacklist help system, make them pass.Luke Shumaker
2013-06-05Phase out `load_conf_*` and `check_conf_*` functionsLuke Shumaker
Replace their usages with `load_files *` and `check_vars *`
2013-06-05conf.sh: fix potential bug with MAKEPKG_CONFLuke Shumaker
2013-05-29lib/conf.sh: learn about the slug "abs"Luke Shumaker
2013-05-27fix a bug in conf.sh (from the get_files->list_files switch), add unit testtesting-20130528Luke Shumaker
2013-05-27libreblacklist: learn `-h`Luke Shumaker
2013-05-27add tests for libreblacklist, fix a few bugsLuke Shumaker
2013-05-26redo the library system; avoid hard-coded pathsLuke Shumaker
* install all library files to $(libexecdir)/libretools, instead of - $(bindir) - $(datadir)/libretools - $(datadir)/devtools * symlink the executable library files into $(bindir) * add the tool `librelib` * instead of ". /path/to/lib.sh", use ". $(librelib lib.sh)" * mark all libraries with shebangs of what options they support * move blacklist.sh to libreblacklist
2013-05-26blacklist.sh: make -euE or non -euE safe, add comments, make executable.Luke Shumaker
Also, change blacklist-lookup()'s internals.
2013-05-26lib/conf.sh: fix bug with `set -u`Luke Shumaker
2013-05-26Add copyright headers to src/lib/{blacklist,conf}.shLuke Shumaker
2013-05-23lib/blacklist.sh: source conf.sh globally to ensure XDG_CACHE_HOME is setLuke Shumaker
2013-05-23lib/blacklist.sh:blacklist-cat(): download blacklist iff it doesn't existLuke Shumaker
2013-05-22add a lib/blacklist.sh, use it for pkgbuild-check-nonfreeLuke Shumaker
2013-05-22conf.sh: also set XDG_CACHE_HOMELuke Shumaker
2013-05-21conf.sh: add documentation, make generic API more consistent.Luke Shumaker
* rename get_files() to list_files() * make list_files() NOT take .conf a the end of $slug * the .conf change cascades to check_vars()