Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
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
xabber-android
Commits
6a970afe
Commit
6a970afe
authored
Jan 09, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format_strings and new_strings scripts updated to new project tree.
parent
2cbcb8c4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
format_strings.bash
scripts/format_strings.bash
+2
-2
new_strings.bash
scripts/new_strings.bash
+1
-1
No files found.
scripts/format_strings.bash
View file @
6a970afe
for
i
in
`
find ../res/
-type
d
-name
value
*
`
;
do
for
i
in
`
find ../
app/src/main/
res/
-type
d
-name
value
*
`
;
do
echo
$i
git diff ^HEAD
$i
|
grep
+ |
grep
-E
"("
$(
cat
$(
find ../res/values/
-name
*
.xml
)
|
grep
-E
'%([0-9]\$|)[sd]'
| perl
-p
-w
-e
's/.*name="(\w+)".*$/$1/g'
|
sed
-e
:a
-e
N
-e
's/\n/|/'
-e
ta
)
")"
git diff ^HEAD
$i
|
grep
+ |
grep
-E
"("
$(
cat
$(
find ../
app/src/main/
res/values/
-name
*
.xml
)
|
grep
-E
'%([0-9]\$|)[sd]'
| perl
-p
-w
-e
's/.*name="(\w+)".*$/$1/g'
|
sed
-e
:a
-e
N
-e
's/\n/|/'
-e
ta
)
")"
done
scripts/new_strings.bash
View file @
6a970afe
for
i
in
`
find ../res/
-type
d
-name
value
*
`
;
do
for
i
in
`
find ../
app/src/main/
res/
-type
d
-name
value
*
`
;
do
echo
$i
git diff ^HEAD
$i
|
grep
+ |
grep
"<string"
| perl
-p
-i
.bak
-w
-e
's/^\+\s*<string\sname="(\w+)">([^\n]*)<\/string>/$1: $2/g'
| perl
-p
-i
.bak
-w
-e
's/\\n/\n/g'
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