summaryrefslogtreecommitdiffstats
path: root/redhat/buildall-sru.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/buildall-sru.sh')
-rwxr-xr-xredhat/buildall-sru.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/redhat/buildall-sru.sh b/redhat/buildall-sru.sh
index 88cd4a13d..a77df7880 100755
--- a/redhat/buildall-sru.sh
+++ b/redhat/buildall-sru.sh
@@ -25,6 +25,11 @@ elif [ -x /usr/bin/yum ]; then
PKGINST='sudo yum install -y'
PKGDEL='sudo yum remove -y'
REPOUPDATE='(cd $(rpm -E %{_rpmdir}); createrepo $(uname -i); createrepo noarch; sudo yum clean all --disablerepo="*" --enablerepo="rpmbuild*")'
+elif [ -x /usr/bin/apt-get ]; then
+ PKGMGR="apt-get"
+ PKGINST='sudo apt-get install -y'
+ PKGDEL='sudo apt-get remove -y'
+ REPOUPDATE='(cd $(rpm -E %{_rpmdir}); genpkglist $PWD noarch; genpkglist $PWD i586; genpkglist $PWD x86_64; genbasedir $PWD i586 x86_64 noarch; sudo apt-get update)'
fi
BUILDDIR=$(rpm -E "%{_builddir}")