Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Sophie Herold
gajim
Commits
8e8eff79
Commit
8e8eff79
authored
7 years ago
by
André
Browse files
Options
Downloads
Patches
Plain Diff
Create desktop and appdata files in build directory
parent
d86c7f47
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+4
-3
4 additions, 3 deletions
setup.py
with
4 additions
and
3 deletions
setup.py
+
4
−
3
View file @
8e8eff79
...
...
@@ -19,6 +19,7 @@ import gajim
pos
=
[
x
for
x
in
os
.
listdir
(
'
po
'
)
if
x
[
-
3
:]
==
"
.po
"
]
ALL_LINGUAS
=
sorted
([
os
.
path
.
split
(
x
)[
-
1
][:
-
3
]
for
x
in
pos
])
cwd
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
build_dir
=
os
.
path
.
join
(
cwd
,
"
build
"
)
def
update_trans
():
...
...
@@ -56,7 +57,7 @@ def build_trans(build_cmd):
data_files
=
build_cmd
.
distribution
.
data_files
for
lang
in
ALL_LINGUAS
:
po_file
=
os
.
path
.
join
(
'
po
'
,
lang
+
'
.po
'
)
mo_file
=
os
.
path
.
join
(
cwd
,
'
build
'
,
'
mo
'
,
lang
,
'
LC_MESSAGES
'
,
'
gajim.mo
'
)
mo_file
=
os
.
path
.
join
(
build
_dir
,
'
mo
'
,
lang
,
'
LC_MESSAGES
'
,
'
gajim.mo
'
)
mo_dir
=
os
.
path
.
dirname
(
mo_file
)
if
not
(
os
.
path
.
isdir
(
mo_dir
)
or
os
.
path
.
islink
(
mo_dir
)):
os
.
makedirs
(
mo_dir
)
...
...
@@ -84,7 +85,7 @@ def build_man(build_cmd):
data_files
=
build_cmd
.
distribution
.
data_files
for
man
in
[
'
gajim.1
'
,
'
gajim-history-manager.1
'
,
'
gajim-remote.1
'
]:
filename
=
os
.
path
.
join
(
'
data
'
,
man
)
newdir
=
os
.
path
.
join
(
cwd
,
'
build
'
,
'
man
'
)
newdir
=
os
.
path
.
join
(
build
_dir
,
'
man
'
)
if
not
(
os
.
path
.
isdir
(
newdir
)
or
os
.
path
.
islink
(
newdir
)):
os
.
makedirs
(
newdir
)
...
...
@@ -112,7 +113,7 @@ def build_intl(build_cmd):
Merge translation files into desktop and mime files
'''
data_files
=
build_cmd
.
distribution
.
data_files
base
=
cwd
base
=
build_dir
merge_files
=
((
'
data/org.gajim.Gajim.desktop
'
,
'
share/applications
'
,
'
--desktop
'
),
(
'
data/gajim-remote.desktop
'
,
'
share/applications
'
,
'
--desktop
'
),
...
...
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