diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-12-23 20:38:12 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-12-23 20:38:12 +0000 |
commit | 4f7847f05e437254653dbb89ee1e77edccef26f4 (patch) | |
tree | 8c495a2119ff1a41d57a715b291ba13139a118ce | |
parent | 941a530dc797f35727d8cf0f37ad65ec8c05d733 (diff) | |
download | draklive-config-4f7847f05e437254653dbb89ee1e77edccef26f4.tar draklive-config-4f7847f05e437254653dbb89ee1e77edccef26f4.tar.gz draklive-config-4f7847f05e437254653dbb89ee1e77edccef26f4.tar.bz2 draklive-config-4f7847f05e437254653dbb89ee1e77edccef26f4.tar.xz draklive-config-4f7847f05e437254653dbb89ee1e77edccef26f4.zip |
Move update_media.sh to top level and get repo path from settings.cfg
-rwxr-xr-x | update_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 |