--- /dev/null
+liblopsub (1.0.2-1) unstable; urgency=low
+
+ * Initial Release. Closes: #925911
+
+ -- Andre Noll <maan@tuebingen.mpg.de> Sun, 3 Mar 2019 00:37:31 +0100
--- /dev/null
+Source: liblopsub
+Section: libdevel
+Priority: optional
+Maintainer: Andre Noll <maan@tuebingen.mpg.de>
+Build-Depends: m4, flex, debhelper (>= 10.0)
+Standards-Version: 3.9.8
+Homepage: http://people.tuebingen.mpg.de/maan/lopsub
+Vcs-Browser: http://git.tuebingen.mpg.de/lopsub.git
+Vcs-Git: git://git.tuebingen.mpg.de/lopsub.git
+
+Package: liblopsub1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Long Option Parser for Subcommands
+ Lopsub is an open source library written in C which aims to ease
+ the task of creating, documenting and parsing the options of Unix
+ command line utilities. It is suitable for simple commands as well
+ as complex command line utilities with many subcommands where each
+ subcommand has its own set of options. Options and documentation are
+ kept together in a single file which can be translated to C code (to
+ be included in the application), or to a manual page. The library
+ supports single-character short options and GNU-style long options.
+ The public API is well documented and stable.
+Homepage: http://people.tuebingen.mpg.de/maan/lopsub
+
+Package: liblopsub-dev
+Architecture: any
+Depends: ${shlibs:Depends}, liblopsub1 (= ${binary:Version}), ${misc:Depends}
+Description: Long Option Parser for Subcommand - headers
+ Lopsub is an open source library written in C which aims to ease
+ the task of creating, documenting and parsing the options of Unix
+ command line utilities. It is suitable for simple commands as well
+ as complex command line utilities with many subcommands where each
+ subcommand has its own set of options. Options and documentation are
+ kept together in a single file which can be translated to C code (to
+ be included in the application), or to a manual page. The library
+ supports single-character short options and GNU-style long options.
+ The public API is well documented and stable.
+ This package contains the development environment for the lopsub library.
--- /dev/null
+Copyright 2016 Andre Noll <maan@tuebingen.mpg.de>
+
+This package is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License, version 3
+(lopsubgen), or the GNU Library General Public License, version 3
+(liblopsub).
+
+On Debian GNU systems, the complete text of the GNU General Public
+License can be found in `/usr/share/common-licenses/GPL-3'. The
+complete text of the GNU Library General Public License can be found in
+'/usr/share/common-licenses/LGPL-3'.
+
+The examples and all code generated by the utilities are in the
+public domain. You are free to do anything you like with the generated
+code, including incorporating it into or linking it with proprietary
+software.
--- /dev/null
+usr/include/*
+usr/lib/*/liblopsub.so
+usr/bin/lopsubgen
+usr/share/man/man1/lopsubgen*
+usr/share/man/man5/lopsub-suite*
--- /dev/null
+debian/tmp/usr/share/man/man7/*
+debian/tmp/usr/lib/*/liblopsub.so.*
--- /dev/null
+#!/usr/bin/make -f
+# Invoke each target with `./debian/rules <target>'. All targets should be
+# invoked with the package root as the current directory.
+
+sourcepackage := liblopsub
+package := liblopsub1
+devpackage := liblopsub-dev
+
+define checkdir
+ @test -f debian/rules -a -f lopsub.c || \
+ (echo Not in correct source directory; exit 1)
+endef
+
+SRCTOP := $(shell pwd)
+TMPDIR := $(SRCTOP)/debian/tmp
+DESTDIR := $(SRCTOP)/debian/$(package)
+DEVDIR := $(SRCTOP)/debian/$(devpackage)
+DOCS_DIR := $(DESTDIR)/usr/share/doc/$(package)
+DEVDOCS_DIR := $(DEVDIR)/usr/share/doc/$(devpackage)
+TRIPLET := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+build-arch:
+ $(checkdir)
+ $(MAKE)
+build-indep:
+build: build-indep build-arch
+
+clean:
+ $(checkdir)
+ -rm -f debian/substvars
+ $(MAKE) distclean
+ dh_clean
+
+INST_OWN = -o root -g root
+MAKE_DIR = install -p -d $(INST_OWN) -m 755
+INST_FILE = install -c $(INST_OWN) -m 644
+
+binary: build
+ $(checkdir)
+ $(MAKE) PREFIX=/usr install DESTDIR=$(TMPDIR)
+ mv $(TMPDIR)/usr/lib $(TMPDIR)/usr/lib-$(TRIPLET)
+ $(MAKE_DIR) $(TMPDIR)/usr/lib
+ mv $(TMPDIR)/usr/lib-$(TRIPLET) $(TMPDIR)/usr/lib/$(TRIPLET)
+ dh_install -p $(package)
+ dh_install -p $(devpackage)
+ $(MAKE_DIR) $(DESTDIR)/DEBIAN $(DOCS_DIR) $(DEVDOCS_DIR)
+ echo 'activate-noawait ldconfig' > $(DESTDIR)/DEBIAN/triggers
+ $(INST_FILE) debian/copyright $(DOCS_DIR)/copyright
+ $(INST_FILE) debian/copyright $(DEVDOCS_DIR)/copyright
+ $(INST_FILE) debian/changelog $(DOCS_DIR)/changelog.Debian
+ $(INST_FILE) debian/changelog $(DEVDOCS_DIR)/changelog.Debian
+ gzip -f9 $(DOCS_DIR)/changelog.Debian
+ gzip -f9 $(DEVDOCS_DIR)/changelog.Debian
+ dh_makeshlibs
+ dh_shlibdeps
+ dh_strip
+ dh_shlibdeps
+ dh_gencontrol
+ dh_builddeb
+
+binary-indep binary-arch: binary
+.PHONY: clean build binary-arch binary-indep binary
--- /dev/null
+3.0 (quilt)
# if there are differences (exit code 1), the working tree is dirty
git diff-index --quiet HEAD || git_ver=$git_ver-dirty
ver=$git_ver
+elif [ -f debian/changelog ]; then
+ ver="$(sed -ne '1s/.*(\(.*\)-.*/\1/1; tx; d; :x; p' debian/changelog)"
elif [ "${PWD%%-*}" = 'lopsub-' ]; then
ver=${PWD##*/lopsub-}
fi