summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyungGi Lee <hyunggi.lee@samsung.com>2017-04-20 00:34:03 -0700
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2017-04-20 00:34:03 -0700
commit8fe5e2106063437876687a6fe64bc6408adeace0 (patch)
tree622515f42267c0686cb2fc5c93067fd4f44e472b
parent1a73963bb83686ac038ebc5c0955993328907314 (diff)
parent61373c6869913cf2fe9f4507b00ebc0b1dabeba7 (diff)
downloadmeta-mobile-accepted/tizen/unified/20170420.155428.tar.gz
meta-mobile-accepted/tizen/unified/20170420.155428.tar.bz2
meta-mobile-accepted/tizen/unified/20170420.155428.zip
Merge "zip license.html to license.zip to secure storage." into tizensubmit/tizen/20170420.073454accepted/tizen/unified/20170420.155428
-rw-r--r--scripts/mobile-license.post17
1 files changed, 14 insertions, 3 deletions
diff --git a/scripts/mobile-license.post b/scripts/mobile-license.post
index 8dd3182..3c1be7f 100644
--- a/scripts/mobile-license.post
+++ b/scripts/mobile-license.post
@@ -1,14 +1,21 @@
#!/bin/sh
echo "############### mobile-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
fi
+if [[ -f $LICENSE_ZIP ]]; then
+ rm -f $LICENSE_ZIP
+fi
+
if [[ -f $MD5_TEMP_FILE ]]; then
rm -f $MD5_TEMP_FILE
fi
@@ -49,4 +56,8 @@ 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