From 3507b71a6093b73b906a6bab0739b48d52b04751 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sun, 27 Apr 2008 17:42:20 +0200 Subject: [PATCH] Add script to run from ssh, when pushed from the testing users, importing the testing data --- scripts/debian/import_testing.sh | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 scripts/debian/import_testing.sh diff --git a/scripts/debian/import_testing.sh b/scripts/debian/import_testing.sh new file mode 100755 index 00000000..31ca4ba6 --- /dev/null +++ b/scripts/debian/import_testing.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +# Copyright (C) 2008 Joerg Jaspert + +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +set -e + +# Load up some standard variables +export SCRIPTVARS=/srv/ftp.debian.org/dak/config/debian/vars +. $SCRIPTVARS + +# What file we look at. +TESTINGINPUT="/srv/ftp.debian.org/testing/data/testing/HeidiReal" + +# Change to a known safe location +cd $masterdir + +echo "Importing new data for testing into projectb" + +# Now load the data +cat $TESTINGINPUT | dak control-suite --set testing + +echo "Done" + +exit 0 -- 2.39.2