Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/lightdm/files/, x11-misc/lightdm/
Date: Tue, 30 Jun 2020 08:00:01
Message-Id: 1593503992.471fa32b97d78be42a08afb523ca578053989db8.polynomial-c@gentoo
1 commit: 471fa32b97d78be42a08afb523ca578053989db8
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 30 07:59:37 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 30 07:59:52 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=471fa32b
7
8 x11-misc/lightdm: Revbump for changed Xsession file.
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 x11-misc/lightdm/files/Xsession | 60 +++++++++++-----------
14 ...htdm-1.30.0.ebuild => lightdm-1.30.0-r1.ebuild} | 0
15 2 files changed, 30 insertions(+), 30 deletions(-)
16
17 diff --git a/x11-misc/lightdm/files/Xsession b/x11-misc/lightdm/files/Xsession
18 index d982a0ac89e..1fe0110c9d9 100644
19 --- a/x11-misc/lightdm/files/Xsession
20 +++ b/x11-misc/lightdm/files/Xsession
21 @@ -5,36 +5,36 @@
22 echo "Running X session wrapper"
23
24 # Load profile
25 -for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do
26 - if [ -f "$file" ]; then
27 - echo "Loading profile from $file";
28 - . "$file"
29 +for file in "/etc/profile" "${HOME}/.profile" "/etc/xprofile" "${HOME}/.xprofile" ; do
30 + if [ -f "${file}" ] ; then
31 + echo "Loading profile from ${file}";
32 + . "${file}"
33 fi
34 done
35
36 # Load resources
37 -for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do
38 - if [ -f "$file" ]; then
39 - echo "Loading resource: $file"
40 - xrdb -nocpp -merge "$file"
41 +for file in "/etc/X11/Xresources" "${HOME}/.Xresources" ; do
42 + if [ -f "${file}" ] ; then
43 + echo "Loading resource: ${file}"
44 + xrdb -nocpp -merge "${file}"
45 fi
46 done
47
48 # Load keymaps
49 -for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do
50 - if [ -f "$file" ]; then
51 - echo "Loading keymap: $file"
52 - setxkbmap `cat "$file"`
53 +for file in "/etc/X11/Xkbmap" "${HOME}/.Xkbmap" ; do
54 + if [ -f "${file}" ] ; then
55 + echo "Loading keymap: ${file}"
56 + setxkbmap $(cat "${file}")
57 XKB_IN_USE=yes
58 fi
59 done
60
61 # Load xmodmap if not using XKB
62 -if [ -z "$XKB_IN_USE" ]; then
63 - for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do
64 - if [ -f "$file" ]; then
65 - echo "Loading modmap: $file"
66 - xmodmap "$file"
67 +if [ -z "${XKB_IN_USE}" ] ; then
68 + for file in "/etc/X11/Xmodmap" "${HOME}/.Xmodmap" ; do
69 + if [ -f "${file}" ] ; then
70 + echo "Loading modmap: ${file}"
71 + xmodmap "${file}"
72 fi
73 done
74 fi
75 @@ -48,27 +48,27 @@ command="$@"
76
77 # Run all system xinitrc shell scripts.
78 xinitdir="/etc/X11/xinit/xinitrc.d"
79 -if [ -d "$xinitdir" ]; then
80 - for script in $xinitdir/*; do
81 - if [ -x "$script" -a ! -d "$script" ]; then
82 - echo "Loading xinit script $script"
83 - . "$script"
84 +if [ -d "${xinitdir}" ] ; then
85 + for script in ${xinitdir}/* ; do
86 + if [ -x "${script}" ] && [ ! -d "${script}" ] ; then
87 + echo "Loading xinit script ${script}"
88 + . "${script}"
89 fi
90 done
91 fi
92
93 # Load Xsession scripts
94 xsessionddir="/etc/X11/Xsession.d"
95 -if [ -d "$xsessionddir" ]; then
96 - for i in `ls $xsessionddir`; do
97 - script="$xsessionddir/$i"
98 - if [ -r "$script" -a -f "$script" ] && expr "$i" : '^[[:alnum:]_-]\+$' > /dev/null; then
99 - echo "Loading X session script $script"
100 - . "$script"
101 +if [ -d "${xsessionddir}" ] ; then
102 + for i in $(ls ${xsessionddir}) ; do
103 + script="${xsessionddir}/${i}"
104 + if [ -r "${script}" ] && [ -f "${script}" ] && expr "${i}" : '^[[:alnum:]_-]\+$' > /dev/null ; then
105 + echo "Loading X session script ${script}"
106 + . "${script}"
107 fi
108 done
109 fi
110
111 -echo "X session wrapper complete, running session $@"
112 +echo "X session wrapper complete, running session ${@}"
113
114 -exec $command
115 +exec ${command}
116
117 diff --git a/x11-misc/lightdm/lightdm-1.30.0.ebuild b/x11-misc/lightdm/lightdm-1.30.0-r1.ebuild
118 similarity index 100%
119 rename from x11-misc/lightdm/lightdm-1.30.0.ebuild
120 rename to x11-misc/lightdm/lightdm-1.30.0-r1.ebuild