diff options
author | Kiseok Chang <kiso.chang@samsung.com> | 2019-10-14 15:37:11 +0900 |
---|---|---|
committer | Kiseok Chang <kiso.chang@samsung.com> | 2019-10-14 15:39:58 +0900 |
commit | 69887b54662aa59888499bbea57c1ea3a700ae51 (patch) | |
tree | ee54a88478d8f7e355aa6707f6518cc801f205a4 | |
parent | 52c20c9c4dfe9f296265b178410515890f6029c7 (diff) | |
download | meta-69887b54662aa59888499bbea57c1ea3a700ae51.tar.gz meta-69887b54662aa59888499bbea57c1ea3a700ae51.tar.bz2 meta-69887b54662aa59888499bbea57c1ea3a700ae51.zip |
Replace license.html into license.ziptizen_5.5.m2_releasesubmit/tizen_5.5_mobile_hotfix/20201026.185109submit/tizen_5.5/20191031.000013submit/tizen_5.5/20191031.000011submit/tizen_5.5/20191031.000009submit/tizen/20191014.065315accepted/tizen/unified/20191015.011946accepted/tizen/5.5/unified/mobile/hotfix/20201027.070917accepted/tizen/5.5/unified/20191031.033326
- to save time that setting app load a license file
- same method to be applied in mobile profile
Change-Id: Id50cd1320343c2ab953d093d546b8745c34138cd
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
-rw-r--r-- | scripts/common-license.post | 47 |
1 files changed, 29 insertions, 18 deletions
diff --git a/scripts/common-license.post b/scripts/common-license.post index 46fe909..7f2d4cb 100644 --- a/scripts/common-license.post +++ b/scripts/common-license.post @@ -1,16 +1,23 @@ #!/bin/sh echo "############### common-license.post ################" -LICENSE_DIR=/usr/share/licenses -LICENSE_FILE=/usr/share/license.html -MD5_TEMP_FILE=/usr/share/temp_license_md5 +LICENSE_BASE=/usr/share + +LICENSE_DIR=$LICENSE_BASE/licenses +LICENSE_FILE=$LICENSE_BASE/license.html +LICENSE_ZIP=$LICENSE_BASE/license.zip +MD5_TEMP_FILE=$LICENSE_BASE/temp_license_md5 if [[ -f $LICENSE_FILE ]]; then - rm -f $LICENSE_FILE + rm -f $LICENSE_FILE +fi + +if [[ -f $LICENSE_ZIP ]]; then + rm -f $LICENSE_ZIP fi if [[ -f $MD5_TEMP_FILE ]]; then - rm -f $MD5_TEMP_FILE + rm -f $MD5_TEMP_FILE fi @@ -18,10 +25,10 @@ cd $LICENSE_DIR LICENSE_LIST=`ls */*` for INPUT in $LICENSE_LIST; do - if [[ -f $INPUT ]]; then - PKG_NAME=`echo $INPUT|cut -d'/' -f1` - echo `md5sum $INPUT` $PKG_NAME >> $MD5_TEMP_FILE - fi + if [[ -f $INPUT ]]; then + PKG_NAME=`echo $INPUT|cut -d'/' -f1` + echo `md5sum $INPUT` $PKG_NAME >> $MD5_TEMP_FILE + fi done MD5_LIST=`cat $MD5_TEMP_FILE|awk '{print $1}'|sort -u` @@ -34,19 +41,23 @@ echo "<body>" >> $LICENSE_FILE echo "<xmp>" >> $LICENSE_FILE for INPUT in $MD5_LIST; do - PKG_LIST=`cat $MD5_TEMP_FILE|grep $INPUT|awk '{print $3}'` - FILE_LIST=`cat $MD5_TEMP_FILE|grep $INPUT|awk '{print $2}'` - PKG_FILE=`echo $FILE_LIST |awk '{print $1}'` - - echo "$PKG_LIST :" >> $LICENSE_FILE - cat $PKG_FILE >> $LICENSE_FILE - echo >> $LICENSE_FILE - echo >> $LICENSE_FILE - echo >> $LICENSE_FILE + PKG_LIST=`cat $MD5_TEMP_FILE|grep $INPUT|awk '{print $3}'` + FILE_LIST=`cat $MD5_TEMP_FILE|grep $INPUT|awk '{print $2}'` + PKG_FILE=`echo $FILE_LIST |awk '{print $1}'` + + echo "$PKG_LIST :" >> $LICENSE_FILE + cat $PKG_FILE >> $LICENSE_FILE + echo >> $LICENSE_FILE + echo >> $LICENSE_FILE + echo >> $LICENSE_FILE done echo "</xmp>" >> $LICENSE_FILE echo "</body>" >> $LICENSE_FILE echo "</html>" >> $LICENSE_FILE +cd $LICENSE_BASE ; zip license.zip license.html +cd - + rm -rf $LICENSE_DIR/* $MD5_TEMP_FILE +rm -rf $LICENSE_FILE
\ No newline at end of file |