diff options
Diffstat (limited to 'generate-packages.sh')
-rwxr-xr-x | generate-packages.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/generate-packages.sh b/generate-packages.sh index 33b4254..c48d328 100755 --- a/generate-packages.sh +++ b/generate-packages.sh @@ -39,7 +39,13 @@ do rm -rf tmp FILEDIR=tmp/vendor/$COMPANY/$DEVICE/proprietary mkdir -p $FILEDIR - mkdir -p tmp/vendor/$MANUFACTURER/$ROOTDEVICE + FILEDIR_ROOT=tmp/vendor/$MANUFACTURER/$ROOTDEVICE + + if test ${ROOTDEVICE} = "dragon" + then + FILEDIR_ROOT=tmp/vendor/${MANUFACTURER}_devices/$ROOTDEVICE + fi + mkdir -p ${FILEDIR_ROOT} TO_EXTRACT=`sed -n -e '/'" $COMPANY"'/,/;;/ p' $EXTRACT_LIST_FILENAME | tail -n+3 | head -n-2 | sed -e 's/\\\//g'` @@ -121,7 +127,7 @@ do echo \ \ Setting up $COMPANY-specific makefiles cp -R $COMPANY/staging/* tmp/vendor/$COMPANY/$DEVICE || echo \ \ \ \ Error copying makefiles echo \ \ Setting up shared makefiles - cp -R root/* tmp/vendor/$MANUFACTURER/$ROOTDEVICE || echo \ \ \ \ Error copying makefiles + cp -R root/* ${FILEDIR_ROOT} || echo \ \ \ \ Error copying makefiles echo \ \ Generating self-extracting script SCRIPT=extract-$COMPANY-$DEVICE.sh cat PROLOGUE > tmp/$SCRIPT || echo \ \ \ \ Error generating script |