From 3b5049928a6c82ce72f99cf07ef40499f027160d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 19 Feb 2017 03:15:27 +0300 Subject: Add script for update all downloaded sources. New script: updatesrcall.sh --- scripts/include/common.sh | 13 +++++++++++++ scripts/updatesrcall.sh | 5 +++++ 2 files changed, 18 insertions(+) create mode 100755 scripts/updatesrcall.sh diff --git a/scripts/include/common.sh b/scripts/include/common.sh index e7e8f8c..382f8a5 100644 --- a/scripts/include/common.sh +++ b/scripts/include/common.sh @@ -354,6 +354,19 @@ function common_use_packages { check_error $? } +function common_update_source_all { + cd ../src/ + check_error $? + files="*" + for package in $files + do + cd ../scripts/ + ./updatesrc.sh $package + check_error $? + done + unset files +} + function package_get_source { echo "package_get_source" run_clone "${SRCURL}" diff --git a/scripts/updatesrcall.sh b/scripts/updatesrcall.sh new file mode 100755 index 0000000..6f42573 --- /dev/null +++ b/scripts/updatesrcall.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +source ../scripts/include/common.sh + +common_update_source_all -- cgit v1.2.3-60-g2f50