summaryrefslogtreecommitdiffstats
path: root/redhat/build/install_requires.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/build/install_requires.sh')
-rwxr-xr-xredhat/build/install_requires.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/redhat/build/install_requires.sh b/redhat/build/install_requires.sh
new file mode 100755
index 000000000..9c901ac50
--- /dev/null
+++ b/redhat/build/install_requires.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+PKGFILE="packages$(rpm -E %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