Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prod_build_cellframe-node
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
prod_build_cellframe-node
Commits
3d16c23f
Commit
3d16c23f
authored
6 months ago
by
Dmitry Puzyrkov
Browse files
Options
Downloads
Patches
Plain Diff
...
parent
7a83c0d4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packaging/android.sh
+49
-0
49 additions, 0 deletions
packaging/android.sh
with
49 additions
and
0 deletions
packaging/android.sh
0 → 100644
+
49
−
0
View file @
3d16c23f
#!/bin/bash -e
set
-e
SOURCE
=
${
BASH_SOURCE
[0]
}
while
[
-L
"
$SOURCE
"
]
;
do
# resolve $SOURCE until the file is no longer a symlink
TARGET
=
$(
readlink
"
$SOURCE
"
)
if
[[
$TARGET
==
/
*
]]
;
then
echo
"SOURCE '
$SOURCE
' is an absolute symlink to '
$TARGET
'"
SOURCE
=
$TARGET
else
DIR
=
$(
dirname
"
$SOURCE
"
)
echo
"SOURCE '
$SOURCE
' is a relative symlink to '
$TARGET
' (relative to '
$DIR
')"
SOURCE
=
$DIR
/
$TARGET
# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
fi
done
echo
"SOURCE is '
$SOURCE
'"
RDIR
=
$(
dirname
"
$SOURCE
"
)
DIR
=
$(
cd
-P
"
$(
dirname
"
$SOURCE
"
)
"
>
/dev/null 2>&1
&&
pwd
)
HERE
=
"
$DIR
"
FILL_VERSION
()
{
source
"
${
HERE
}
/../version.mk"
VERSION_UPDATE
=
"s|VERSION_MAJOR|
${
VERSION_MAJOR
}
|g"
BUILD_UPDATE
=
"s|VERSION_MINOR|
${
VERSION_MINOR
}
|g"
MAJOR_UPDATE
=
"s|VERSION_PATCH|
${
VERSION_PATCH
}
|g"
for
TEMPLATE
in
"
$@
"
;
do
sed
\
-e
"
${
VERSION_UPDATE
}
"
\
-e
"
${
BUILD_UPDATE
}
"
\
-e
"
${
MAJOR_UPDATE
}
"
\
-i
"
${
TEMPLATE
}
"
done
}
PACK
()
{
DIST_DIR
=
$1
BUILD_DIR
=
$2
OUT_DIR
=
$3
cd
$OUT_DIR
/../os/android
./gradlew assembleRelease
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment