Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
10f8ddb1
Commit
10f8ddb1
authored
Oct 18, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(dev_scripts/update_resources): add doc
parent
e3dc39ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
update_resources
tests/dev_scripts/update_resources
+17
-7
No files found.
tests/dev_scripts/update_resources
View file @
10f8ddb1
#!/usr/bin/sh
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
RESOURCE_FILE
=
"resources.qrc"
# ====================================================================
# Tool to build automatically `resources.qrc`.
#
# It should be used sparingly, it adds all `.qml`, `.svg`, `.png`,
# `.jpg` and `.js` (contained in `ui` and `imgs` folders)
# in the resources file.
#
# If you don't want to add a particular file, do not use this script!
# ====================================================================
RESOURCES_FILE
=
"resources.qrc"
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
cd
$SCRIPT_DIR
/..
echo
"<!DOCTYPE RCC><RCC version=
\"
1.0
\"
>
<qresource prefix=
\"
/
\"
>"
>
$RESOURCE_FILE
<qresource prefix=
\"
/
\"
>"
>
$RESOURCE
S
_FILE
for
filename
in
$(
find ui/ imgs/
-type
f |
sort
)
do
basename
=
"
${
filename
##*/
}
"
extension
=
"
${
filename
##*.
}
"
if
[[
"
${
extension
}
"
==
@
(
qml|svg|png|jpg|js
)
||
"
${
basename
}
"
==
"qmldir"
]]
;
then
echo
" <file>
$filename
</file>"
>>
$RESOURCE_FILE
if
[[
${
extension
}
==
@
(
qml|svg|png|jpg|js
)
||
${
basename
}
==
qmldir
]]
;
then
echo
" <file>
$filename
</file>"
>>
$RESOURCE
S
_FILE
fi
done
echo
" </qresource>
</RCC>"
>>
$RESOURCE_FILE
</RCC>"
>>
$RESOURCE
S
_FILE
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