summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Shin <yj99.shin@samsung.com>2017-03-21 15:46:00 +0900
committerYoungjae Shin <yj99.shin@samsung.com>2017-03-21 15:46:00 +0900
commit7ead090b740e20f429a3e6d393c18c2387bdfa3b (patch)
tree112695e9d035d1c82707cd14566ac648255b84f2
parent607a3b3fc88cec014789bdda52c05c3aa3b39540 (diff)
downloadmeta-mobile-7ead090b740e20f429a3e6d393c18c2387bdfa3b.tar.gz
meta-mobile-7ead090b740e20f429a3e6d393c18c2387bdfa3b.tar.bz2
meta-mobile-7ead090b740e20f429a3e6d393c18c2387bdfa3b.zip
Change-Id: I18dfc00651dd51463b73ebd0865530bf67bef67e
-rw-r--r--scripts/mobile-license.post10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/mobile-license.post b/scripts/mobile-license.post
index 6088d9f..13c505d 100644
--- a/scripts/mobile-license.post
+++ b/scripts/mobile-license.post
@@ -19,7 +19,7 @@ LICENSE_OLD_LIST=`ls $LICENSE_OLD_DIR`
for INPUT in $LICENSE_OLD_LIST; do
if [[ -f $INPUT ]]; then
- md5sum $INPUT >> $MD5_TEMP_FILE
+ md5sum $INPUT | echo `awk '{print $1 " " $2}'` $LICENSE_OLD_DIR/$INPUT >> $MD5_TEMP_FILE
fi
done
@@ -29,7 +29,8 @@ LICENSE_LIST=`ls */*`
for INPUT in $LICENSE_LIST; do
if [[ -f $INPUT ]]; then
- md5sum $INPUT >> $MD5_TEMP_FILE
+ PKG_NAME=`echo $INPUT|cut -d'/' -f1`
+ md5sum $INPUT | echo `awk '{print $1}'` $PKG_NAME $LICENSE_DIR/$INPUT >> $MD5_TEMP_FILE
fi
done
@@ -44,10 +45,11 @@ echo "<xmp>" >> $LICENSE_FILE
for INPUT in $MD5_LIST; do
PKG_LIST=`cat $MD5_TEMP_FILE|grep $INPUT|awk '{print $2}'`
- PKG_NAME=`echo $PKG_LIST|awk '{print $1}'`
+ FILE_LIST=`cat $MD5_TEMP_FILE|grep $INPUT|awk '{print $3}'`
+ PKG_FILE=`echo $FILE_LIST |awk '{print $1}'`
echo "$PKG_LIST :" >> $LICENSE_FILE
- cat $PKG_NAME >> $LICENSE_FILE
+ cat $PKG_FILE >> $LICENSE_FILE
echo >> $LICENSE_FILE
echo >> $LICENSE_FILE
echo >> $LICENSE_FILE