From 1e9d4da25bae6862a549faa5949696bf88c583de Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Thu, 28 Apr 2016 18:23:41 +0200 Subject: [PATCH] Add tsp/jobs/prerelease_watcher.sh Add entry for tspoll to common.sh file. Change-Id: Ia9b92a8935db5cd08e1f81a2baab9dcde3ab0840 Signed-off-by: Aleksander Mistewicz --- tsp/common.sh | 2 ++ tsp/jobs/prerelease_watcher.sh | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100755 tsp/jobs/prerelease_watcher.sh diff --git a/tsp/common.sh b/tsp/common.sh index cdb31a8..af13253 100755 --- a/tsp/common.sh +++ b/tsp/common.sh @@ -26,3 +26,5 @@ die() { printf >&2 -- '%s\n' "$1" exit ${2:-1} } + +alias tspoll="TS_SOCKET=/tmp/socket.tl-master-poll tsp" diff --git a/tsp/jobs/prerelease_watcher.sh b/tsp/jobs/prerelease_watcher.sh new file mode 100755 index 0000000..c16e8ec --- /dev/null +++ b/tsp/jobs/prerelease_watcher.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +# Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Author: Aleksander Mistewicz + +export TSP_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)/.." + +. "${TSP_DIR}/common.sh" + +WS="${HOME}/ws/prerelease_watcher" +mkdir -p "${WS}" +cd "${WS}" +touch dispatched_urls +tspoll -L PRERELEASE_WATCHER sh -c "ROOT=\"http://download.tizen.org/prerelease/tizen/common/\" \ + ${TSP_DIR}/scripts/prerelease_crawler.py" -- 2.7.4