You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
417 B
23 lines
417 B
11 years ago
|
#!/bin/bash
|
||
|
|
||
|
TDE_VERSION=${1:-14.0.0}
|
||
|
ARCH=$(uname -i)
|
||
|
RPMDIR=$(rpm -E %{_rpmdir}.tde-${TDE_VERSION})
|
||
|
|
||
|
if [ -x /usr/bin/yum ]; then
|
||
|
cat <<EOF >/tmp/rpmbuild-tde.repo
|
||
|
[rpmbuild.${ARCH}]
|
||
|
name=rpmbuild.${ARCH}
|
||
|
baseurl=file://${RPMDIR}/${ARCH}
|
||
|
enabled=1
|
||
|
gpgcheck=0
|
||
|
|
||
|
[rpmbuild.noarch]
|
||
|
name=rpmbuild.noarch
|
||
|
baseurl=file://${RPMDIR}/noarch
|
||
|
enabled=1
|
||
|
gpgcheck=0
|
||
|
EOF
|
||
|
sudo mv -f /tmp/rpmbuild-tde.repo /etc/yum.repos.d/
|
||
|
fi
|