-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrunMasterForDependencies
More file actions
executable file
·26 lines (20 loc) · 1017 Bytes
/
runMasterForDependencies
File metadata and controls
executable file
·26 lines (20 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash -e
cd $(dirname "$0")
# This script resolves all dependencies for a given input patter, using the findReverseDependencies script.
# It then calls the master script with all found dependencies.
# Typical use case: Use it for DOOCS, which is not build with the ChimeraTK mechanism,
# and rebuild all of it dependent packages.
#check the input.
if [[ $# != 3 ]]; then
echo "Usage: ./runMasterForDependencies <distribution_codename> <package_pattern> <debian_repository>"
echo "Example: ./runMasterForDependencies xenial \"dev-doocs.*\" http://doocspkgs.desy.de/"
exit 1
fi
codename=$1
package_pattern=$2
debian_repository=$3
# grep -v "^dev-" gets rid of doocs packages
# sed -e 's/^lib//' -e 's/-dev / /' extracts the name we need for the DebianBuildVersions
input_to_master=`./findReverseDependencies "${package_pattern}" ${codename} ${debian_repository}| grep -v "^dev-" | sed -e 's/^lib//' -e 's/-dev / /'`
echo ./master ${codename} ${input_to_master}
./master ${codename} ${input_to_master}