diff options
author | François Andriot <albator78@libertysurf.fr> | 2014-04-15 19:43:15 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2014-04-15 19:43:15 +0200 |
commit | 41284c83ff5be87bbc957f646c0db642e93cc722 (patch) | |
tree | 8b61e4e593c0e6f94cfe83c4ea363fc62e83bcab /redhat/build/install_requires.sh | |
parent | 062d4cb70976cec2a15349c6abe70a506d19f1d5 (diff) | |
download | tde-packaging-41284c83ff5be87bbc957f646c0db642e93cc722.tar.gz tde-packaging-41284c83ff5be87bbc957f646c0db642e93cc722.zip |
RPM Packaging: update build scripts
Diffstat (limited to 'redhat/build/install_requires.sh')
-rwxr-xr-x | redhat/build/install_requires.sh | 14 |
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 |