summaryrefslogtreecommitdiffstats
path: root/redhat/build/install_requires.sh
blob: 5a947539de685a6ec4bb424aa75c4174c301753d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

DIST="$(rpmdist.sh --dist)"
PKGFILE="packages${DIST}"

# Under Mageia/Mandriva, do not forget to enable "Tainted" and "Nonfree" repositories !
if [ -x /usr/sbin/urpmi ]; then
  if [ "$(uname -i)" = "x86_64" ]; then
    PKGS="$(<${PKGFILE})"
  else
    PKGS="$(sed -e "s|lib64|lib|" ${PKGFILE} | sort -u)"
  fi

  sudo urpmi ${PKGS} 2>&1
fi