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/commit_results | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 controller/commit_results (limited to 'controller/commit_results') diff --git a/controller/commit_results b/controller/commit_results deleted file mode 100755 index f18a361..0000000 --- a/controller/commit_results +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -srcdir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) || exit 1 -. "$srcdir/config/config.sh" || { - echo >&2 "sorry, but $srcdir/config/config.sh not found" - exit 1 -} - -# argparse -resultdir="$1" -ressubdir="$2" -test -n "$ressubdir" || { "no path specified" ; exit 1 ; } -test -n "$3" && DTF_DATABASE="$2" - -# checks -test -z "$DTF_DATABASE" && exit 1 -test -f "$resultdir/dtf.tar.gz" || exit 1 - -# run -if test ! -d "$DTF_DATABASE/$ressubdir"; then - mkdir -p "$DTF_DATABASE/$ressubdir" -fi - -( cd "$resultdir" && tar -xf dtf.tar.gz && cp -r dtf "$DTF_DATABASE/$ressubdir" ) -- cgit