mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
buildsystem: big rework & cleanup - PART-1: split functions from 'config/path' to an seperate file 'config/functions', rework and cleanup some build scripts, remove references to $TARGET_PLATFORM, add support for more then one downloadurl for $PKG_URL (partially done), remove support for: $PKG_DIR/arch, $PKG_DIR/platform, $PKG_DIR/url files, remove support for *.diff patches, create download-stampfiles in sources/$PKG_NAME, create md5 files after download, add support to download all sources at once with './scripts/get'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -10,19 +10,18 @@ fi
|
||||
[ -z "$PKG_URL" ] && exit 1
|
||||
[ ! -d "$SOURCES/$1" -o ! -d "$3" ] && exit 1
|
||||
|
||||
[ -n "$PKG_URL" ] && \
|
||||
FILES="$FILES `echo $PKG_URL | sed 's%.*/\(.*\)\$%\1%'`"
|
||||
for i in $PKG_URL; do
|
||||
FILE="`basename $i`"
|
||||
|
||||
for s in $FILES; do
|
||||
case $s in
|
||||
case $FILE in
|
||||
$2)
|
||||
f="$SOURCES/$1/$s"
|
||||
f="$SOURCES/$1/$FILE"
|
||||
if [ ! -f $f ]; then
|
||||
echo "error: File $s doesn't exists in package $1 sources directory"
|
||||
echo "error: File $FILE doesn't exists in package $1 sources directory"
|
||||
echo "have you called scripts/extract before scripts/get ?"
|
||||
exit 1
|
||||
fi
|
||||
case $s in
|
||||
case $FILE in
|
||||
*.tar)
|
||||
tar xf $f -C $3
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user