Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
c7aeb938
Commit
c7aeb938
authored
Nov 22, 2013
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build対応修正
parent
17f437b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
packer/obfuscate.sh
+6
-4
No files found.
packer/obfuscate.sh
View file @
c7aeb938
...
@@ -7,11 +7,13 @@ TARGET2=""
...
@@ -7,11 +7,13 @@ TARGET2=""
if
[
$#
-eq
1
]
;
then
if
[
$#
-eq
1
]
;
then
TARGET0
=
$1
TARGET0
=
$1
else
TARGET0
=
"abvw"
fi
fi
# abvw/js/*
# abvw/js/*
#TARGET1='bookmark.js contentsearch.js contentview.js contentview_Gomu.js contentview_Maker.js contentview_Marking.js contentview_Memo.js contentview_Paint.js contentview_Pen.js contentview_PopupText.js detail.js header.js history.js home.js login.js settings.js'
#TARGET1='bookmark.js contentsearch.js contentview.js contentview_Gomu.js contentview_Maker.js contentview_Marking.js contentview_Memo.js contentview_Paint.js contentview_Pen.js contentview_PopupText.js detail.js header.js history.js home.js login.js settings.js'
if
[
"
$TARGET0
"
=
""
]
;
then
if
[
"
$TARGET0
"
=
"
abvw
"
]
;
then
TARGET1
=
'Limit_Access_Content.js bookmark.js contentsearch.js contentview.js contentview_3d.js contentview_Anket.js contentview_CallApi.js contentview_ContentTypeNone.js contentview_CreateObjects.js contentview_Events.js contentview_General.js contentview_GetData.js contentview_Gomu.js contentview_ImagePreview.js contentview_InitObjects.js contentview_Maker.js contentview_Marking.js contentview_Memo.js contentview_Paint.js contentview_Pen.js contentview_PopupText.js detail.js header.js history.js home.js login.js settings.js'
TARGET1
=
'Limit_Access_Content.js bookmark.js contentsearch.js contentview.js contentview_3d.js contentview_Anket.js contentview_CallApi.js contentview_ContentTypeNone.js contentview_CreateObjects.js contentview_Events.js contentview_General.js contentview_GetData.js contentview_Gomu.js contentview_ImagePreview.js contentview_InitObjects.js contentview_Maker.js contentview_Marking.js contentview_Memo.js contentview_Paint.js contentview_Pen.js contentview_PopupText.js detail.js header.js history.js home.js login.js settings.js'
else
else
TARGET1
=
'contentview.js contentview_3d.js contentview_Anket.js contentview_CallApi.js contentview_ContentTypeNone.js contentview_CreateObjects.js contentview_Events.js contentview_General.js contentview_GetData.js contentview_ImagePreview.js contentview_InitObjects.js contentview_PopupText.js contentview_initDefautValue.js'
TARGET1
=
'contentview.js contentview_3d.js contentview_Anket.js contentview_CallApi.js contentview_ContentTypeNone.js contentview_CreateObjects.js contentview_Events.js contentview_General.js contentview_GetData.js contentview_ImagePreview.js contentview_InitObjects.js contentview_PopupText.js contentview_initDefautValue.js'
...
@@ -19,7 +21,7 @@ fi
...
@@ -19,7 +21,7 @@ fi
# abvw/common/js
# abvw/common/js
#TARGET2='avweb.js common.js i18n.js screenLock.js slideshow.js textObject.js zoomDetector.js'
#TARGET2='avweb.js common.js i18n.js screenLock.js slideshow.js textObject.js zoomDetector.js'
if
[
"
$TARGET0
"
=
""
]
;
then
if
[
"
$TARGET0
"
=
"
abvw
"
]
;
then
TARGET2
=
'avweb.js common.js i18n.js screenLock.js script.js tab.js textObject.js zoomDetector.js'
TARGET2
=
'avweb.js common.js i18n.js screenLock.js script.js tab.js textObject.js zoomDetector.js'
else
else
TARGET2
=
'avweb.js common.js i18n.js script.js textObject.js zoomDetector.js'
TARGET2
=
'avweb.js common.js i18n.js script.js textObject.js zoomDetector.js'
...
@@ -29,14 +31,14 @@ OBFUSCATE_EXECUTABLE="$DIR/packer/jsPacker.pl -e10"
...
@@ -29,14 +31,14 @@ OBFUSCATE_EXECUTABLE="$DIR/packer/jsPacker.pl -e10"
for
f
in
$TARGET1
for
f
in
$TARGET1
do
do
ORG
=
$DIR
/
abvw
/js/
$f
ORG
=
$DIR
/
$TARGET0
/js/
$f
TARGET
=
$DIR
/ob/abvw/js/
$f
TARGET
=
$DIR
/ob/abvw/js/
$f
$OBFUSCATE_EXECUTABLE
-i
$ORG
-o
$TARGET
$OBFUSCATE_EXECUTABLE
-i
$ORG
-o
$TARGET
done
done
for
f
in
$TARGET2
for
f
in
$TARGET2
do
do
ORG
=
$DIR
/
abvw
/common/js/
$f
ORG
=
$DIR
/
$TARGET0
/common/js/
$f
TARGET
=
$DIR
/ob/abvw/common/js/
$f
TARGET
=
$DIR
/ob/abvw/common/js/
$f
$OBFUSCATE_EXECUTABLE
-i
$ORG
-o
$TARGET
$OBFUSCATE_EXECUTABLE
-i
$ORG
-o
$TARGET
done
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment