diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..bd79912 --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +Marc Wäckerlin (http://marc.waeckerlin.org) diff --git a/COPYING b/COPYING new file mode 120000 index 0000000..caeca07 --- /dev/null +++ b/COPYING @@ -0,0 +1 @@ +/usr/share/automake-1.14/COPYING \ No newline at end of file diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..d461506 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,4 @@ +2015-02-04 13:48 marc + + * .: initial + diff --git a/INSTALL b/INSTALL new file mode 120000 index 0000000..f812f5a --- /dev/null +++ b/INSTALL @@ -0,0 +1 @@ +/usr/share/automake-1.14/INSTALL \ No newline at end of file diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/README b/README new file mode 100644 index 0000000..e69de29 diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..916e283 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,19 @@ +#! /bin/sh + +## @file +## +## $Id: bootstrap.sh 2 2009-06-16 13:20:59Z $ +## +## $Date: 2004/08/31 15:57:19 $ +## $Author: marc $ +## +## @copy © Marc Wäckerlin +## @license LGPL, see file COPYING +## +## $Log: bootstrap.sh,v $ +## Revision 1.3 2004/08/31 15:57:19 marc +## added file header +## + +test -f makefile && make distclean +aclocal && libtoolize --force && automake -a && autoconf diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..43f023a --- /dev/null +++ b/configure.ac @@ -0,0 +1,43 @@ +## @id $Id$ + +## 1 2 3 4 5 6 7 8 +## 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +AC_INIT(webtester, 1.0.m4_esyscmd_s( + LEAST="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-svn-checkout" + for path in . .. ../..; do + if svn info $path 2>&1 > /dev/null; then + LEAST=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p') + (cd $path && svn2cl) + break; + fi + done + echo -n $LEAST +)) + +AM_INIT_AUTOMAKE([1.9 tar-pax]) + +AC_CONFIG_FILES(makefile src/makefile debian/changelog debian/control) + +AC_PROG_CXX +AC_PROG_CC + +README=$(tail -n +3 README) +README_DEB=$(tail -n +3 README | sed -e 's/^$/./g' -e 's/^/ /g') +DESCRIPTION=$(head -1 README) +AUTHOR=$(head -1 AUTHORS) +AC_SUBST(AUTHOR) +_AM_SUBST_NOTMAKE([AUTHOR]) +AC_SUBST(DESCRIPTION) +_AM_SUBST_NOTMAKE([DESCRIPTION]) +AC_SUBST(README) +_AM_SUBST_NOTMAKE([README]) +AC_SUBST(README_DEB) +_AM_SUBST_NOTMAKE([README_DEB]) +DISTRO=$(lsb_release -sc) +AC_SUBST(DISTRO) +BUILD_NUMBER=${BUILD_NUMBER:-1} +AC_SUBST(BUILD_NUMBER) +BUILD_DATE=$(date -R) +AC_SUBST(BUILD_DATE) +AC_OUTPUT diff --git a/debian/changelog.in b/debian/changelog.in new file mode 100644 index 0000000..d34a0b5 --- /dev/null +++ b/debian/changelog.in @@ -0,0 +1,5 @@ +@PACKAGE@ (@VERSION@~@DISTRO@.@BUILD_NUMBER@) @DISTRO@; urgency=low + + * Please see https://dev.marc.waeckerlin.org/redmine/@PROJECT_NAME@ + + -- @AUTHOR@ @BUILD_DATE@ diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control.in b/debian/control.in new file mode 100644 index 0000000..f799e1e --- /dev/null +++ b/debian/control.in @@ -0,0 +1,13 @@ +Source: @PACKAGE_NAME@ +Section: devel +Priority: extra +Maintainer: @AUTHOR@ +Build-Depends: debhelper (>= 8.0.0), autotools-dev, subversion-tools, lsb-release +Standards-Version: 3.9.2 +Homepage: https://dev.marc.waeckerlin.org/redmine/@PACKAGE_NAME@ + +Package: @PACKAGE_NAME@ +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: @DESCRIPTION@ +@README_DEB@ diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..50bd824 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +NEWS +README diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b760bee --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ diff --git a/makefile.am b/makefile.am new file mode 100644 index 0000000..333d818 --- /dev/null +++ b/makefile.am @@ -0,0 +1,38 @@ +## @id $Id$ + +## 1 2 3 4 5 6 7 8 +## 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +SUBDIRS = src + +doc_DATA = AUTHORS COPYING ChangeLog NEWS README INSTALL + +EXTRA_DIST = bootstrap.sh debian + +DISTCLEANFILES = debian/changelog + +doc_DATA = AUTHORS NEWS README COPYING INSTALL ChangeLog +#@PACKAGE_NAME@.spec + +deb: dist + tar xzvf @PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.gz + cd @PACKAGE_TARNAME@-@PACKAGE_VERSION@ && dpkg-buildpackage + rm -rf @PACKAGE_TARNAME@-@PACKAGE_VERSION@ + +#rpm: dist +# rpmbuild -ba \ +# --define "_topdir $$(pwd)" \ +# --define "_sourcedir $$(pwd)" \ +# @PACKAGE_NAME@.spec + +MAINTAINERCLEANFILES = debian/control aclocal.m4 compile \ + configure install-sh ltmain.sh makefile.in \ + missing + +CLEANFILES = @PACKAGE_TARNAME@-@PACKAGE-VERSION@.tar.gz \ + @PACKAGE_TARNAME@_@PACKAGE_VERSION@~@DISTRO@.@BUILD_NUMBER@.dsc \ + @PACKAGE_TARNAME@_@PACKAGE_VERSION@~@DISTRO@.@BUILD_NUMBER@.tar.gz \ + @PACKAGE_TARNAME@_@PACKAGE_VERSION@~@DISTRO@.@BUILD_NUMBER@_*.deb \ + @PACKAGE_TARNAME@_@PACKAGE_VERSION@~@DISTRO@.@BUILD_NUMBER@_*.changes + +.PHONY: dep rpm diff --git a/src/makefile b/src/makefile deleted file mode 100644 index 3549d55..0000000 --- a/src/makefile +++ /dev/null @@ -1,11 +0,0 @@ -all: make-webrunner make-webtester -clean: clean-webrunner clean-webtester - -makefile-%: - qmake -o $@ -config debug -config ${@:makefile-%=%} - -make-%: makefile-% - make -f ${<} - -clean-%: makefile-% - make -f ${<} clean diff --git a/src/makefile.am b/src/makefile.am new file mode 100644 index 0000000..8cb93c9 --- /dev/null +++ b/src/makefile.am @@ -0,0 +1,28 @@ +## @id $Id$ + +## 1 2 3 4 5 6 7 8 +## 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +bin_SCRIPTS = webrunner webtester +BUILT_SOURCES = ${bin_SCRIPTS:%=makefile.%} +EXTRA_DIST = *.[ch]xx *.ui @PACKAGE_NAME@.pro + +clean-local: ${bin_SCRIPTS:%=clean.%} + +webrunner: make.webrunner +webtester: make.webtester + +makefile.%: + qmake -o $@ -config debug -config ${@:makefile.%=%} + +make.%: makefile.% + make -f ${<} + +clean.%: makefile.% + make -f ${<} clean + +CLEANFILES = ${bin_SCRIPTS} +DISTCLEANFILES = ${BUILT_SOURCES} +MAINTAINERCLEANFILES = makefile.in + +.PHONY: make.* clean.* \ No newline at end of file