debian/0000755000000000000000000000000011523511752007170 5ustar debian/vercheck0000755000000000000000000000115111500413503010674 0ustar #!/bin/sh VERSION_SRC=`grep ^VERSION cfget | cut -d\" -f2` VERSION_SETUPPY=`grep version= setup.py | cut -d\' -f2` VERSION_DEB=`head -n 1 debian/changelog | sed -re 's/.+\(([^-]+).+/\1/'` VERSION_DEBFULL=`head -n 1 debian/changelog | sed -re 's/.+\((.+)\).+/\1/'` VERSION="$VERSION_SRC" if [ "$VERSION_SRC" != "$VERSION_SETUPPY" ] then echo "Version mismatch between cfget ($VERSION_SRC) and setup.py ($VERSION_SETUPPY)" >&2 exit 1 fi if [ "$VERSION_SRC" != "$VERSION_DEB" ] then echo "Version mismatch between cfget ($VERSION_SRC) and debian/changelog ($VERSION_DEB)" >&2 exit 1 fi echo "$VERSION" exit 0 debian/compat0000644000000000000000000000000211500413503010354 0ustar 7 debian/source/0000755000000000000000000000000011500413503010456 5ustar debian/source/format0000644000000000000000000000001411500413503011664 0ustar 3.0 (quilt) debian/manpages0000644000000000000000000000001011500413503010663 0ustar cfget.1 debian/examples0000644000000000000000000000001311500413503010711 0ustar examples/* debian/rules0000755000000000000000000000050311500413503010234 0ustar #!/usr/bin/make -f VERSION=$(shell debian/vercheck) %: dh $@ vercheck: debian/vercheck > /dev/null debsrc: vercheck test -f cfget.1 || ./update-manpage python setup.py sdist mv dist/cfget-$(VERSION).tar.gz ../cfget_$(VERSION).orig.tar.gz fakeroot debian/rules clean rm -f MANIFEST debuild -S -us -uc -rfakeroot debian/docs0000644000000000000000000000000711500413503010026 0ustar README debian/changelog0000644000000000000000000001003211500432043011024 0ustar cfget (0.18-1) unstable; urgency=low * New upstream version - Allow empty comment lines - Added Cfget.load_from_env to allow to easily load a working Cfget object from other python code - Fixed some exception handling and error reporting during parsing of expressions -- Enrico Zini Fri, 10 Dec 2010 14:07:13 +0000 cfget (0.17-1) unstable; urgency=low * New upstream version - Fixed a DeprecationWarning with python 2.6 - Allow empty values, treating them as unsets - Round function returns an int, not a float -- Enrico Zini Thu, 26 Aug 2010 17:23:00 +0200 cfget (0.16-1) unstable; urgency=low * New upstream version - Fixes to the expression tokenizer -- Enrico Zini Fri, 16 Jul 2010 09:51:34 +0100 cfget (0.15-1) unstable; urgency=low * New upstream version - Added simple expression support * Switch to dpkg-source 3.0 (quilt) format -- Enrico Zini Thu, 15 Jul 2010 18:37:50 +0100 cfget (0.14-1) unstable; urgency=low * New upstream version - Replace curly braces in keys with the lookup of their content -- Enrico Zini Wed, 16 Jun 2010 15:34:34 +0200 cfget (0.13-1) unstable; urgency=low * New upstream version - Allow plugins to raise UserError - Add --debug to show a backtrace for UserErrors -- Enrico Zini Thu, 03 Jun 2010 17:17:39 +0100 cfget (0.12-1) unstable; urgency=low * New upstream version - Properly handle plugins that generate non-string results -- Enrico Zini Thu, 27 May 2010 14:30:14 +0100 cfget (0.11-1) unstable; urgency=low * New upstream version - Allow dynamic queries to query values more than once without triggering loop detection -- Enrico Zini Mon, 29 Mar 2010 19:14:03 +0100 cfget (0.10-1) unstable; urgency=low * New upstream version - Added --dump=pickle * Removed unneeded dependency on cdbs -- Enrico Zini Fri, 12 Mar 2010 12:00:16 +0100 cfget (0.9-1) unstable; urgency=low * New upstream version - Implemented list_matching_re for use by plugins -- Enrico Zini Mon, 02 Nov 2009 20:30:45 +0100 cfget (0.8-1) unstable; urgency=low * New upstream version - Better reporting for I/O errors - Cleaner interface for template engines - Cleaner interface for dumper engines - If the target file for a template substitution is given by name, write it atomically - Implemented --root=path * Upload to unstable. Closes: #553065 -- Enrico Zini Thu, 29 Oct 2009 14:49:22 +0100 cfget (0.7-1) unstable; urgency=low * New upstream version - Implemented support for custom configuration file parsers - Allow values outside of sections in plain ini parser * Added examples -- Enrico Zini Wed, 28 Oct 2009 22:43:27 +0100 cfget (0.6-1) unstable; urgency=low * Renamed to cfget -- Enrico Zini Tue, 27 Oct 2009 15:02:57 +0100 ini-get (0.5-1) unstable; urgency=low * Implemented support for pluggable template systems * Implemented autoconf-style templates -- Enrico Zini Mon, 26 Oct 2009 12:49:47 +0100 ini-get (0.4-1) unstable; urgency=low * New upstream version - Refactored to allow plugins to provide more than just dynamic keys - Added --dump=exports - Added --dump=repr -- Enrico Zini Mon, 12 Oct 2009 18:06:19 +0100 ini-get (0.3-1) unstable; urgency=low * New upstream version - Better error messages -- Enrico Zini Thu, 01 Oct 2009 15:56:00 +0100 ini-get (0.2-1) unstable; urgency=low * New upstream version - Fixed code after reorganisation - Added tests for the command line tool -- Enrico Zini Thu, 01 Oct 2009 13:20:11 +0100 ini-get (0.1-1) unstable; urgency=low * Initial release. -- Enrico Zini Fri, 25 Sep 2009 12:45:16 +0100 debian/copyright0000644000000000000000000000164211500413503011114 0ustar cfget was packaged by Enrico Zini on Fri Sep 25 12:05:41 BST 2009 Upstream author: Enrico Zini Copyright (C) 2007 Enrico Zini License: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL file. The Debian packaging is licensed under the GNU General Public License version 2 or above as well. debian/control0000644000000000000000000000246511500413503010570 0ustar Source: cfget Section: admin Priority: optional Maintainer: Enrico Zini Build-Depends: debhelper (>= 7.0.0) Build-Depends-Indep: help2man, python Standards-Version: 3.9.0.0 Homepage: http://www.enricozini.org/sw/cfget/ Vcs-Git: git://git.debian.org/users/enrico/cfget.git Vcs-Browser: http://git.debian.org/?p=users/enrico/cfget.git Package: cfget Architecture: all Depends: python, ${misc:Depends} Description: featureful tool to read values from config files cfget is a simple yet featureful tool to read values from configuration files. It is useful, for example, to create configurable shellscripts or makefiles. . Besides retrieving values, it can dump the information in several convenient ways, like a set of sh exports commands that can be conveniently passed to eval. It can also use the configuration values to expand template files. . It can also be configured to support virtual configuration values that, if not present in the config file, are automatically computed from the existing values. This makes it convenient, for example, to get a "duration" value from a configuration file that only contains a "start date" and an "end date". . It is also easy to create plugins to provide custom templating systems, export styles, dynamic values and even custom configuration file parsers.