Merge pull request #4820 from zalaare/VendorFixes

More $HOME/.openelec (Vendor) fixes
This commit is contained in:
Stephan Raue 2016-03-04 21:54:06 +01:00
commit 84a661ff3e

View File

@ -268,27 +268,27 @@ dashes="==========================="
check_config() { check_config() {
dashes="===========================" dashes="==========================="
if [ ! -d $PROJECT_DIR/$PROJECT ]; then if [ ! -d $PROJECT_DIR/$PROJECT -a ! -d $HOME/.openelec/projects/$PROJECT ]; then
check_project="$check_project\n $dashes$dashes$dashes" check_project="$check_project\n $dashes$dashes$dashes"
check_project="$check_project\n ERROR: Project not found, use a valid project or create a new config" check_project="$check_project\n ERROR: Project not found, use a valid project or create a new config"
check_project="$check_project\n $dashes$dashes$dashes" check_project="$check_project\n $dashes$dashes$dashes"
check_project="$check_project\n\n Valid projects:" check_project="$check_project\n\n Valid projects:"
for projects in $PROJECT_DIR/*; do for projects in $PROJECT_DIR/* $HOME/.openelec/projects/*; do
check_project="$check_project\n - $(basename $projects)" check_project="$check_project\n - $(basename $projects)"
done done
echo -e $check_project echo -e $check_project
exit 1 exit 1
fi fi
if [ ! -f $PROJECT_DIR/$PROJECT/linux/linux.$TARGET_ARCH.conf ]; then if [ ! -f $PROJECT_DIR/$PROJECT/linux/linux.$TARGET_ARCH.conf -a ! -f $HOME/.openelec/projects/$PROJECT/linux/linux.$TARGET_ARCH.conf ]; then
check_arch="$check_arch\n $dashes$dashes$dashes" check_arch="$check_arch\n $dashes$dashes$dashes"
check_arch="$check_arch\n ERROR: Architecture not found, use a valid Architecture" check_arch="$check_arch\n ERROR: Architecture not found, use a valid Architecture"
check_arch="$check_arch\n for your project or create a new config" check_arch="$check_arch\n for your project or create a new config"
check_arch="$check_arch\n $dashes$dashes$dashes" check_arch="$check_arch\n $dashes$dashes$dashes"
check_arch="$check_arch\n\n Valid Architectures for your project: $PROJECT" check_arch="$check_arch\n\n Valid Architectures for your project: $PROJECT"
for arch in $PROJECT_DIR/$PROJECT/linux/*.conf; do for arch in $PROJECT_DIR/$PROJECT/linux/*.conf $HOME/.openelec/projects/$PROJECT/linux/*.conf; do
check_arch="$check_arch\n - $(basename $arch | cut -f2 -d".")" check_arch="$check_arch\n - $(basename $arch | cut -f2 -d".")"
done done
echo -e $check_arch echo -e $check_arch