summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xupdate_media.sh (renamed from files/mga_rpms/update_media.sh)11
1 files changed, 7 insertions, 4 deletions
diff --git a/files/mga_rpms/update_media.sh b/update_media.sh
index f742b66..f340fde 100755
--- a/files/mga_rpms/update_media.sh
+++ b/update_media.sh
@@ -1,5 +1,8 @@
+#!/bin/sh
+repository=$(grep repository config/settings.cfg | sed s/repository=//)
+echo "Updating files/mga_rpms from $repository"
-bcdmedia=/home/bcd/build_bcd/pieces/6
+cd files/mga_rpms
copy_latest()
{
@@ -17,7 +20,7 @@ copy_latest()
if [ $arch = "i586" ] ; then
name=${name/-desktop-/-desktop586-}
fi
- path=`ls -1v $bcdmedia/$arch/media/$repo/{release,updates}/$name.rpm 2> /dev/null | tail -1`
+ path=`ls -1v $repository/$arch/media/$repo/{release,updates}/$name.rpm 2> /dev/null | tail -1`
if [ -z $path ] ; then
echo "Couldn't find $name for $arch"
exit 1
@@ -76,8 +79,8 @@ copy_latest core broadcom-ssb-config-*
# add repo pubkeys
for arch in i586 x86_64 ; do
- cp $bcdmedia/$arch/media/core/release/media_info/pubkey $arch/mga_rpms/core/media_info/
- cp $bcdmedia/$arch/media/nonfree/release/media_info/pubkey $arch/mga_rpms/nonfree/media_info/
+ cp $repository/$arch/media/core/release/media_info/pubkey $arch/mga_rpms/core/media_info/
+ cp $repository/$arch/media/nonfree/release/media_info/pubkey $arch/mga_rpms/nonfree/media_info/
done
# create hdlists