From fbe706dccdd35bfdfd163b7107ea90f801830321 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 24 Oct 2014 10:02:41 +0200 Subject: controller: autoconfiscate #2 Move 'results_stats' and 'commit_results' binaries into libexec and adjust appropriately. Also html template is now in $pkgdatadir. * .gitignore: Add tags/ChangeLog generated files. * README: Just some random notes. Needs to be rewritten anyway. * controller/.gitignore: Add newly 'make'd files. * controller/Makefile.am: Generate libexec/bin files. * controller/commit_results: Move to controller/libexec as dtf-result-stats.in. * controller/configure.ac: Also substitute resulttemplatedir. * controller/etc/dtf.conf.d/config.sh.template: The DTF_DATABASE was misleading - use rather DTF_DATABASE_DEFAULT. * controller/libexec/dtf-commit-results.in: Moved from controller/commit_results. * controller/result_stats: Moved to controller/libexec/dtf-result-stats.in. * controller/libexec/dtf-result-stats.in: Moved from controller/result_stats. * controller/result_templates/html.tmpl: Moved to controller/share/dtf-controller/results-stats-templates/html.tmpl. --- controller/libexec/dtf-commit-results.in | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 controller/libexec/dtf-commit-results.in (limited to 'controller/libexec/dtf-commit-results.in') diff --git a/controller/libexec/dtf-commit-results.in b/controller/libexec/dtf-commit-results.in new file mode 100644 index 0000000..86b31d7 --- /dev/null +++ b/controller/libexec/dtf-commit-results.in @@ -0,0 +1,19 @@ +#!/bin/bash + +. "@sysconfdir@/dtf.sh" || exit 1 + +# argparse +resultdir="$1" + +db="$DTF_DATABASE_DEFAULT" +test -n "$2" && db="$2" + +if test -z "$db" \ + || test -z "$resultdir" \ + || test ! -f "$resultdir/dtf.tar.gz" +then + echo >&2 "something is wrong, try bash -x" + exit 1 +fi + +( cd "$resultdir" && tar -xf dtf.tar.gz && cp -r dtf "$db/$ressubdir" ) -- cgit