Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kdevelop
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christoph Roick
kdevelop
Commits
52348239
Commit
52348239
authored
Nov 21, 2018
by
Kevin Funk
☕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install_colorschemes: Port to Python-based script
parent
3dae4914
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
21 deletions
+43
-21
appimage/install_colorschemes.sh
appimage/install_colorschemes.sh
+0
-19
appimage/kdevelop-recipe-centos6.sh
appimage/kdevelop-recipe-centos6.sh
+2
-2
release-scripts/install_colorschemes.py
release-scripts/install_colorschemes.py
+41
-0
No files found.
appimage/install_colorschemes.sh
deleted
100755 → 0
View file @
3dae4914
#!/bin/sh
if
[
-z
"
$PREFIX
"
]
;
then
PREFIX
=
/tmp/fakeroot/usr
fi
VER
=
5.13.4
# Plasma version
COLORSCHEMESDIR
=
$PREFIX
/share/color-schemes
mkdir
-p
$COLORSCHEMESDIR
wget
-nc
-O
breeze.tar.xz https://download.kde.org/stable/plasma/
$VER
/breeze-
$VER
.tar.xz
tar
xf breeze.tar.xz
cd
breeze-
$VER
cp
-v
colors/
*
$COLORSCHEMESDIR
wget
-nc
-O
plasma-desktop.tar.xz https://download.kde.org/stable/plasma/
$VER
/plasma-desktop-
$VER
.tar.xz
tar
xf plasma-desktop.tar.xz
cd
plasma-desktop-
$VER
cp
-v
./kcms/colors/schemes/
*
$COLORSCHEMESDIR
appimage/kdevelop-recipe-centos6.sh
View file @
52348239
...
...
@@ -221,8 +221,8 @@ build_project kdev-python $KDEVELOP_VERSION
build_project kdev-clang-tidy
$KDEV_CLANG_TIDY_VERSION
# Install some colorschemes
cd
$
SRC
$SCRIPT_DIR
/
install_colorschemes.sh
cd
$
BUILD
$SCRIPT_DIR
/
../release-scripts/install_colorschemes.sh /kdevelop.appdir/usr
cd
/kdevelop.appdir
...
...
release-scripts/install_colorschemes.py
0 → 100755
View file @
52348239
#!/usr/bin/env python3
#
# Downloads color schemes from download.kde.org and installs them into the desired prefix
# Usage: install_colorschemes.py [INSTALL_PREFIX]
import
distutils.dir_util
import
os
import
shutil
import
sys
import
tarfile
import
urllib.request
installPrefix
=
sys
.
argv
[
1
]
if
len
(
sys
.
argv
)
>
1
else
None
ver
=
"5.13.4"
# Plasma version
colorSchemesDir
=
"share/color-schemes"
def
downloadAndExtract
(
url
):
fname
=
os
.
path
.
basename
(
url
)
if
not
os
.
path
.
exists
(
fname
):
print
(
"Downloading {0}"
.
format
(
url
))
urllib
.
request
.
urlretrieve
(
url
,
fname
)
else
:
print
(
"Skipping download of {0} (file already exists)"
.
format
(
url
))
print
(
"Unpacking {0}"
.
format
(
fname
))
dirname
=
fname
.
replace
(
".tar.xz"
,
""
)
shutil
.
rmtree
(
dirname
)
with
tarfile
.
open
(
fname
)
as
tar
:
tar
.
extractall
()
downloadAndExtract
(
'https://download.kde.org/stable/plasma/{0}/breeze-{0}.tar.xz'
.
format
(
ver
))
downloadAndExtract
(
'https://download.kde.org/stable/plasma/{0}/plasma-desktop-{0}.tar.xz'
.
format
(
ver
))
distutils
.
dir_util
.
copy_tree
(
os
.
path
.
join
(
"breeze-{0}"
.
format
(
ver
),
"colors"
),
colorSchemesDir
)
distutils
.
dir_util
.
copy_tree
(
os
.
path
.
join
(
"plasma-desktop-{0}"
.
format
(
ver
),
"kcms/colors/schemes"
),
colorSchemesDir
)
print
(
"Available color schemes: {0}"
.
format
(
", "
.
join
(
os
.
listdir
(
colorSchemesDir
))))
if
installPrefix
:
print
(
"Installing to: {0}"
.
format
(
installPrefix
))
distutils
.
dir_util
.
copy_tree
(
colorSchemesDir
,
os
.
path
.
join
(
installPrefix
,
colorSchemesDir
))
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