summaryrefslogtreecommitdiffstats
path: root/legacy-scripts/install-clients-deps.sh
blob: 5c31eb7740352abc90c6926295088e94516365dd (plain)
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
27
28
29
30
31
#!/bin/bash

# Defaults
TARGET=16
ARCH=x86_64

while getopts i:j: opt
do
  case $opt in
  i) TARGET="$OPTARG";;
  j) ARCH="$OPTARG";;
  ?) printf "Usage: %s: [-i dist] [-j arch]\n"  $0
     exit 2;;
  esac
done

export dist=${TARGET}
export arch=${ARCH}

cc="crypto-utils curl xulrunner"; 

for c in $cc; do
  pushd ${c}
  fedpkg clean
  fedpkg srpm
  mock -r fedora-${dist}-${arch} --copyin ${c}-*.src.rpm /tmp
  mock -r fedora-${dist}-${arch} --installdeps ${c}-*.src.rpm
  popd
done