Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anton Palgunov
mkimage-profiles
Commits
d79061fb
Commit
d79061fb
authored
Jul 07, 2013
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xdg-user-dirs: employ control feature
Maybe the conditionals shouldn't be too terse, by the way...
parent
f123fea6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
config.mk
features.in/xdg-user-dirs/config.mk
+2
-1
35-xdg-user-dirs
....in/xdg-user-dirs/rootfs/image-scripts.d/35-xdg-user-dirs
+5
-8
No files found.
features.in/xdg-user-dirs/config.mk
View file @
d79061fb
use/xdg-user-dirs:
use/xdg-user-dirs:
use/control
@$(call add_feature)
@$(call add,CONTROL,xdg-user-dirs:enabled)
@$(call add,THE_PACKAGES,xdg-user-dirs)
@$(call xport,XDG_USER_DIRS)
...
...
features.in/xdg-user-dirs/rootfs/image-scripts.d/35-xdg-user-dirs
View file @
d79061fb
#!/bin/sh
# t
urn on xdg-user-dirs.and tweak it
s defaults if told so
#
(using tuples like "PHOTOS:Documents/Pictures")
# t
weak xdg-user-dir
s defaults if told so
#
using tuples like "PHOTOS:Documents/Pictures"
.
shell-config
CONFIG
=
"/etc/xdg/user-dirs.defaults"
if
control xdg-user-dirs enabled
;
then
if
[
-n
"
$GLOBAL_XDG_USER_DIRS
"
]
;
then
echo
"
$GLOBAL_XDG_USER_DIRS
"
\
|
tr
' '
'\n'
\
[
-z
"
$GLOBAL_XDG_USER_DIRS
"
]
||
echo
"
$GLOBAL_XDG_USER_DIRS
"
\
|
tr
' '
'\n'
\
|
while
IFS
=
':'
read
k v
;
do
[
-n
"
$k
"
-a
-n
"
$v
"
]
||
continue
shell_config_set
"
$CONFIG
"
"
$k
"
"
$v
"
done
fi
fi
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