]>
Commit | Line | Data |
---|---|---|
cd445739 AM |
1 | #!/bin/sh |
2 | # ----------- | |
3 | # $Id$ | |
4 | # Exit codes: | |
2a5f078d | 5 | # 0 - succesful |
6 | # 1 - help displayed | |
7 | # 2 - no spec file name in cmdl parameters | |
8 | # 3 - spec file not stored in repo | |
9 | # 4 - some source, patch or icon files not stored in repo | |
10 | # 5 - package build failed | |
11 | # 6 - spec file with errors | |
12 | # 7 - wrong source in /etc/poldek.conf | |
13 | # 8 - Failed installing buildrequirements and subrequirements | |
14 | # 9 - Requested tag already exist | |
15 | # 10 - Refused to build fractional release | |
16 | # 100 - Unknown error (should not happen) | |
cd445739 AM |
17 | |
18 | # Notes (todo): | |
f7b91886 | 19 | # - builder -u fetches current version first (well that's okay, how you compare versions if you have no old spec?) |
cd445739 | 20 | # - when Icon: field is present, -5 and -a5 doesn't work |
f3ada241 | 21 | # - builder -R skips installing BR if spec is not present before builder invocation (need to run builder twice) |
931a4acf | 22 | |
4003ad8c | 23 | VERSION="\ |
c9acaed9 | 24 | Build package utility from PLD Linux CVS repository |
cdb4a820 | 25 | v0.15 (C) 1999-2006 Free Penguins". |
d6a77ddb | 26 | PATH="/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin" |
b03f053b | 27 | |
cd445739 | 28 | COMMAND="build" |
64ea5308 | 29 | TARGET="" |
cd445739 | 30 | |
bde1c404 | 31 | SPECFILE="" |
d287305c | 32 | BE_VERBOSE="" |
4003ad8c | 33 | QUIET="" |
cd445739 AM |
34 | CLEAN="" |
35 | DEBUG="" | |
36 | NOURLS="" | |
37 | NOCVS="" | |
38 | NOCVSSPEC="" | |
39 | NODIST="" | |
47761337 | 40 | NOINIT="" |
cd445739 AM |
41 | UPDATE="" |
42 | UPDATE5="" | |
43 | ADD5="" | |
44 | NO5="" | |
45 | ALWAYS_CVSUP=${ALWAYS_CVSUP:-"yes"} | |
c8f50498 | 46 | CVSROOT="" |
cd445739 AM |
47 | |
48 | # It can be used i.e. in log file naming. | |
49 | # See LOGFILE example. | |
50 | DATE=`date +%Y-%m-%d_%H-%M-%S` | |
51 | ||
52 | # Example: LOGFILE='../log.$PACKAGE_NAME' | |
53 | # Example: LOGFILE='../LOGS/log.$PACKAGE_NAME.$DATE' | |
54 | # Yes, you can use variable name! Note _single_ quotes! | |
55 | LOGFILE='' | |
56 | ||
57 | LOGDIR="" | |
58 | LOGDIROK="" | |
59 | LOGDIRFAIL="" | |
60 | LASTLOG_FILE="" | |
61 | ||
62 | CHMOD="no" | |
63 | CHMOD_MODE="0444" | |
64 | RPMOPTS="" | |
d1c5a9a7 | 65 | RPMBUILDOPTS="" |
cd445739 AM |
66 | BCOND="" |
67 | GROUP_BCONDS="no" | |
947025e5 | 68 | CVSIGNORE_DF="no" |
d287305c | 69 | |
70 | PATCHES="" | |
71 | SOURCES="" | |
cd445739 | 72 | ICONS="" |
d287305c | 73 | PACKAGE_RELEASE="" |
74 | PACKAGE_VERSION="" | |
75 | PACKAGE_NAME="" | |
cd445739 AM |
76 | PROTOCOL="ftp" |
77 | WGET_RETRIES=${MAX_WGET_RETRIES:-0} | |
78 | CVS_RETRIES=${MAX_CVS_RETRIES:-1000} | |
79 | ||
80 | CVSTAG="" | |
81 | RES_FILE="" | |
82 | ||
83 | CVS_SERVER="cvs.pld-linux.org" | |
84 | DISTFILES_SERVER="://distfiles.pld-linux.org" | |
d4730dae | 85 | ATTICDISTFILES_SERVER="://attic-distfiles.pld-linux.org" |
cd445739 | 86 | |
36d03934 | 87 | DEF_NICE_LEVEL=19 |
86aafdbe | 88 | SCHEDTOOL="auto" |
cd445739 AM |
89 | |
90 | FAIL_IF_NO_SOURCES="yes" | |
91 | ||
18e5347d ER |
92 | # let get_files skip over files which are present to get those damn files fetched |
93 | SKIP_EXISTING_FILES="no" | |
94 | ||
ab4a2b6e ER |
95 | if [ -x /usr/bin/rpm-getdeps ]; then |
96 | FETCH_BUILD_REQUIRES_RPMGETDEPS="yes" | |
97 | else | |
98 | FETCH_BUILD_REQUIRES_RPMGETDEPS="no" | |
99 | fi | |
100 | ||
cd445739 AM |
101 | # Here we load saved user environment used to |
102 | # predefine options set above, or passed to builder | |
103 | # in command line. | |
104 | # This one reads global system environment settings: | |
105 | if [ -f ~/etc/builderrc ]; then | |
106 | . ~/etc/builderrc | |
107 | fi | |
108 | # And this one cascades settings using user personal | |
109 | # builder settings. | |
110 | # Example of ~/.builderrc: | |
111 | # | |
112 | #UPDATE_POLDEK_INDEXES="yes" | |
113 | #FETCH_BUILD_REQUIRES="yes" | |
114 | #REMOVE_BUILD_REQUIRES="force" | |
115 | #GROUP_BCONDS="yes" | |
116 | #LOGFILE='../LOGS/log.$PACKAGE_NAME.$DATE' | |
982e358c | 117 | #TITLECHANGE=no |
cd445739 | 118 | # |
a83e5405 | 119 | SU_SUDO="" |
cd445739 AM |
120 | if [ -n "$HOME_ETC" ]; then |
121 | USER_CFG="$HOME_ETC/.builderrc" | |
122 | else | |
123 | USER_CFG=~/.builderrc | |
124 | fi | |
125 | ||
126 | [ -f "$USER_CFG" ] && . "$USER_CFG" | |
127 | ||
06f3864d AM |
128 | wget --help 2>&1 | grep -q ' \-\-no-check\-certificate ' && WGET_OPTS="$WGET_OPTS --no-check-certificate" |
129 | ||
86aafdbe ER |
130 | if [ "$SCHEDTOOL" = "auto" ]; then |
131 | if [ -x /usr/bin/schedtool ] && schedtool -B -e echo >/dev/null; then | |
132 | SCHEDTOOL="schedtool -B -e" | |
133 | else | |
134 | SCHEDTOOL="no" | |
135 | fi | |
136 | fi | |
137 | ||
ca2e6c31 | 138 | if [ -n "$USE_PROZILLA" ]; then |
7e365483 KK |
139 | GETURI="proz --no-getch -r -P ./ -t$WGET_RETRIES $PROZILLA_OPTS" |
140 | GETURI2="$GETURI" | |
141 | OUTFILEOPT="-O" | |
ca2e6c31 | 142 | elif [ -n "$USE_AXEL" ]; then |
cede92b3 | 143 | GETURI="axel -a $AXEL_OPTS" |
7e365483 KK |
144 | GETURI2="$GETURI" |
145 | OUTFILEOPT="-o" | |
ca2e6c31 | 146 | else |
7e365483 KK |
147 | wget --help 2>&1 | grep -q ' \-\-inet ' && WGET_OPTS="$WGET_OPTS --inet" |
148 | wget --help 2>&1 | grep -q ' \-\-retry\-connrefused ' && WGET_OPTS="$WGET_OPTS --retry-connrefused" | |
6f9a5d76 | 149 | |
7e365483 KK |
150 | GETURI="wget --passive-ftp -c -nd -t$WGET_RETRIES $WGET_OPTS" |
151 | GETURI2="wget -c -nd -t$WGET_RETRIES $WGET_OPTS" | |
152 | OUTFILEOPT="-O" | |
2bc5451f | 153 | fi |
11468b23 | 154 | |
11468b23 AM |
155 | GETLOCAL="cp -a" |
156 | ||
157 | if (rpm --version 2>&1 | grep -q '4.0.[0-2]'); then | |
158 | RPM="rpm" | |
159 | RPMBUILD="rpm" | |
160 | else | |
161 | RPM="rpm" | |
162 | RPMBUILD="rpmbuild" | |
163 | fi | |
164 | ||
165 | POLDEK_INDEX_DIR="`$RPM --eval %_rpmdir`/" | |
a83e5405 | 166 | POLDEK_CMD="$SU_SUDO /usr/bin/poldek --noask" |
11468b23 | 167 | |
cd445739 AM |
168 | run_poldek() |
169 | { | |
170 | RES_FILE=~/tmp/poldek-exit-status.$RANDOM | |
171 | if [ -n "$LOGFILE" ]; then | |
172 | LOG=`eval echo $LOGFILE` | |
173 | if [ -n "$LASTLOG_FILE" ]; then | |
174 | echo "LASTLOG=$LOG" > $LASTLOG_FILE | |
175 | fi | |
86aafdbe | 176 | (${NICE_COMMAND} ${POLDEK_CMD} `while test $# -gt 0; do echo "$1 ";shift;done` ; echo $? > ${RES_FILE})|tee -a $LOG |
cd445739 AM |
177 | return $exit_pldk |
178 | else | |
86aafdbe | 179 | (${NICE_COMMAND} ${POLDEK_CMD} `while test $# -gt 0; do echo "$1 ";shift;done` ; echo $? > ${RES_FILE}) 1>&2 >/dev/null |
cd445739 AM |
180 | return `cat ${RES_FILE}` |
181 | rm -rf ${RES_FILE} | |
182 | fi | |
183 | } | |
184 | ||
cd445739 AM |
185 | #--------------------------------------------- |
186 | # functions | |
da946cd6 | 187 | |
5a491465 | 188 | usage() |
189 | { | |
cd445739 AM |
190 | if [ -n "$DEBUG" ]; then set -xv; fi |
191 | echo "\ | |
192 | Usage: builder [-D|--debug] [-V|--version] [-a|--as_anon] [-b|-ba|--build] | |
81f85806 | 193 | |
cd445739 AM |
194 | [-bb|--build-binary] [-bs|--build-source] [-u|--try-upgrade] |
195 | [{-B|--branch} <branch>] [{-d|--cvsroot} <cvsroot>] [-g|--get] | |
196 | [-h|--help] [--http] [{-l,--logtofile} <logfile>] [-m|--mr-proper] | |
197 | [-q|--quiet] [--date <yyyy-mm-dd> [-r <cvstag>] [{-T--tag <cvstag>] | |
198 | [-Tvs|--tag-version-stable] [-Tvn|--tag-version-nest] | |
199 | [-Ts|--tag-stable] [-Tn|--tag-nest] [-Tv|--tag-version] | |
200 | [{-Tp|--tag-prefix} <prefix>] [{-tt|--test-tag}] | |
dfe2cb9a | 201 | [-nu|--no-urls] [-v|--verbose] [--opts <rpm opts>] [--show-bconds] |
f19103b5 | 202 | [--with/--without <feature>] [--define <macro> <value>] <package>[.spec][:cvstag] |
2a5f078d | 203 | |
cd445739 AM |
204 | -5, --update-md5 - update md5 comments in spec, implies -nd -ncs |
205 | -a5, --add-md5 - add md5 comments to URL sources, implies -nc -nd -ncs | |
206 | -n5, --no-md5 - ignore md5 comments in spec | |
9243e80b ER |
207 | -D, --debug - enable builder script debugging mode, |
208 | -debug - produce rpm debug package (same as --opts -debug) | |
cd445739 AM |
209 | -V, --version - output builder version |
210 | -a, --as_anon - get files via pserver as cvs@$CVS_SERVER, | |
211 | -b, -ba, --build - get all files from CVS repo or HTTP/FTP and build package | |
212 | from <package>.spec, | |
213 | -bb, --build-binary - get all files from CVS repo or HTTP/FTP and build binary | |
214 | only package from <package>.spec, | |
c56807e0 ER |
215 | -bp, --build-prep - execute the %prep phase of <package>.spec, |
216 | -bc - reserved (not implemented) | |
217 | -bi reserved (not implemented) | |
cd445739 AM |
218 | -bs, --build-source - get all files from CVS repo or HTTP/FTP and only pack |
219 | them into src.rpm, | |
c56807e0 | 220 | --short-circuit - reserved (not implemented) |
cd445739 AM |
221 | -B, --branch - add branch |
222 | -c, --clean - clean all temporarily created files (in BUILD, SOURCES, | |
223 | SPECS and \$RPM_BUILD_ROOT), | |
2a5f078d | 224 | -d <cvsroot>, --cvsroot <cvsroot> |
cd445739 AM |
225 | - setup \$CVSROOT, |
226 | --define <macro> <value> | |
227 | - define a macro <macro> with value <value>, | |
228 | --nodeps - rpm won't check any dependences | |
229 | -g, --get - get <package>.spec and all related files from CVS repo | |
230 | or HTTP/FTP, | |
231 | -h, --help - this message, | |
232 | --http - use http instead of ftp, | |
233 | -l <logfile>, --logtofile <logfile> | |
234 | - log all to file, | |
235 | -m, --mr-proper - only remove all files related to spec file and all work | |
236 | resources, | |
237 | -nc, --no-cvs - don't download sources from CVS, if source URL is given, | |
238 | -ncs, --no-cvs-specs | |
239 | - don't check specs in CVS | |
240 | -nd, --no-distfiles - don't download from distfiles | |
241 | -nm, --no-mirrors - don't download from mirror, if source URL is given, | |
242 | -nu, --no-urls - don't try to download from FTP/HTTP location, | |
243 | -ns, --no-srcs - don't download Sources | |
244 | -ns0, --no-source0 - don't download Source0 | |
245 | -nn, --no-net - don't download anything from the net | |
29e90b02 | 246 | -ni, --no-init - don't initialize builder paths (SPECS and SOURCES) |
18e5347d ER |
247 | -ske, |
248 | --skip-existing-files - skip existing files in get_files | |
cd445739 AM |
249 | --opts <rpm opts> - additional options for rpm |
250 | -q, --quiet - be quiet, | |
251 | --date yyyy-mm-dd - build package using resources from specified CVS date, | |
252 | -r <cvstag>, --cvstag <cvstag> | |
253 | - build package using resources from specified CVS tag, | |
254 | -R, --fetch-build-requires | |
255 | - fetch what is BuildRequired, | |
256 | -RB, --remove-build-requires | |
257 | - remove all you fetched with -R or --fetch-build-requires | |
258 | remember, this option requires confirmation, | |
259 | -FRB, --force-remove-build-requires | |
260 | - remove all you fetched with -R or --fetch-build-requires | |
261 | remember, this option works without confirmation, | |
06541433 JR |
262 | -sd, --source-distfiles - list sources available from distfiles (intended for offline |
263 | operations; does not work when Icon field is present | |
264 | but icon file is absent), | |
265 | -sdp, --source-distfiles-paths - list sources available from distfiles - | |
266 | paths relative to distfiles directory (intended for offline | |
267 | operations; does not work when Icon field is present | |
268 | but icon file is absent), | |
a7eefc54 | 269 | -sf, --source-files - list sources - bare filenames (intended for offline |
270 | operations; does not work when Icon field is present | |
3621e588 | 271 | but icon file is absent), |
a7eefc54 | 272 | -sp, --source-paths - list sources - filenames with full local paths (intended for |
273 | offline operations; does not work when Icon field is present | |
3621e588 | 274 | but icon file is absent), |
2dddf439 ER |
275 | -su, --source-urls - list urls - urls to sources and patches |
276 | intended for copying urls with spec with lots of macros in urls | |
cd445739 AM |
277 | -T <cvstag> , --tag <cvstag> |
278 | - add cvs tag <cvstag> for files, | |
279 | -Tvs, --tag-version-stable | |
094bd95b | 280 | - add cvs tags STABLE and NAME-VERSION-RELEASE for files, |
cd445739 | 281 | -Tvn, --tag-version-nest |
1691a37b | 282 | - add cvs tags NEST and NAME-VERSION-RELEASE for files, |
cd445739 AM |
283 | -Ts, --tag-stable |
284 | - add cvs tag STABLE for files, | |
285 | -Tn, --tag-nest | |
286 | - add cvs tag NEST for files, | |
287 | -Tv, --tag-version | |
1691a37b | 288 | - add cvs tag NAME-VERSION-RELEASE for files, |
cd445739 AM |
289 | -Tp, --tag-prefix <prefix> |
290 | - add <prefix> to NAME-VERSION-RELEASE tags, | |
291 | -tt, --test-tag <prefix> | |
292 | - fail if tag is already present, | |
50321881 JK |
293 | -ir, --integer-release-only |
294 | - allow only integer and snapshot releases | |
cd445739 AM |
295 | -v, --verbose - be verbose, |
296 | -u, --try-upgrade - check version, and try to upgrade package | |
297 | -un, --try-upgrade-with-float-version | |
298 | - as above, but allow float version | |
deccc50e | 299 | -U, --update - refetch sources, don't use distfiles, and update md5 comments |
cd445739 AM |
300 | -Upi, --update-poldek-indexes |
301 | - refresh or make poldek package index files. | |
c890b916 | 302 | -np, --nopatch <patchnumber> |
bed98670 | 303 | - don't apply <patchnumber> |
dfe2cb9a MK |
304 | --show-bconds - show available conditional builds, which can be used |
305 | - with --with and/or --without switches. | |
cd445739 AM |
306 | --with/--without <feature> |
307 | - conditional build package depending on %_with_<feature>/ | |
308 | %_without_<feature> macro switch. You may now use | |
309 | --with feat1 feat2 feat3 --without feat4 feat5 --with feat6 | |
310 | constructions. Set GROUP_BCONDS to yes to make use of it. | |
6dd19291 | 311 | --target <platform>, --target=<platform> |
3621e588 ER |
312 | - build for platform <platform>. |
313 | --init-rpm-dir - initialize ~/rpm directory structure | |
5a491465 | 314 | " |
315 | } | |
316 | ||
c890b916 | 317 | update_shell_title() { |
a0d6396b | 318 | [ -t 1 ] || return |
0b65d15e ER |
319 | local len=${COLUMNS:-80} |
320 | local msg=$(echo "$*" | cut -c-$len) | |
321 | ||
e225de91 ER |
322 | if [ -n "$BE_VERBOSE" ]; then |
323 | echo >&2 "$(date +%s.%N) $*" | |
324 | fi | |
325 | ||
982e358c | 326 | if [ "x$TITLECHANGE" == "xyes" -o "x$TITLECHANGE" == "x" ]; then |
138bbc98 ER |
327 | local pkg |
328 | if [ -n "$PACKAGE_NAME" ]; then | |
329 | pkg=${PACKAGE_NAME}-${PACKAGE_VERSION}-${PACKAGE_RELEASE} | |
330 | else | |
331 | pkg=${SPECFILE} | |
332 | fi | |
333 | ||
334 | msg="$pkg: ${SHELL_TITLE_PREFIX:+$SHELL_TITLE_PREFIX }$msg" | |
982e358c MP |
335 | case "$TERM" in |
336 | cygwin|xterm*) | |
337 | echo >&2 -ne "\033]1;$msg\007\033]2;$msg\007" | |
338 | ;; | |
339 | screen*) | |
340 | echo >&2 -ne "\033]0;$msg\007" | |
341 | ;; | |
342 | esac | |
343 | fi | |
c890b916 ER |
344 | } |
345 | ||
7e40520f ER |
346 | # set TARGET from BuildArch: from SPECFILE |
347 | set_spec_target() { | |
348 | if [ -n "$SPECFILE" ] && [ -z "$TARGET" ]; then | |
349 | tmp=$(awk '/^BuildArch:/ { print $NF}' $SPECFILE) | |
350 | if [ "$tmp" ]; then | |
351 | TARGET="$tmp" | |
352 | case "$RPMBUILD" in | |
353 | "rpmbuild") | |
354 | TARGET_SWITCH="--target $TARGET" ;; | |
355 | "rpm") | |
356 | TARGET_SWITCH="--target=$TARGET" ;; | |
357 | esac | |
358 | fi | |
359 | fi | |
360 | } | |
361 | ||
cd445739 | 362 | cache_rpm_dump () { |
b2aeec7d AM |
363 | if [ -n "$DEBUG" ]; then |
364 | set -x; | |
365 | set -v; | |
366 | fi | |
7e40520f | 367 | |
13974367 | 368 | update_shell_title "cache_rpm_dump" |
237bd3f1 ER |
369 | local rpm_dump |
370 | rpm_dump=` | |
d05e8080 | 371 | |
fa4bf1df | 372 | # we reset macros not to contain macros.build as all the %() macros are |
559d511f | 373 | # executed here, while none of them are actually needed. |
fa4bf1df | 374 | # what we need from dump is NAME, VERSION, RELEASE and PATCHES/SOURCES. |
559d511f | 375 | # at the time of this writing macros.build + macros contained 70 "%(...)" macros. |
36433112 | 376 | macrofiles="/usr/lib/rpm/macros:$SPECS_DIR/.builder-rpmmacros:~/etc/.rpmmacros:~/.rpmmacros" |
237bd3f1 | 377 | dump='%{echo:dummy: PACKAGE_NAME %{name} }%dump' |
7cb24972 | 378 | # FIXME: better ideas than .rpmrc? |
36433112 | 379 | printf 'include:/usr/lib/rpm/rpmrc\nmacrofiles:%s\n' $macrofiles > .builder-rpmrc |
fb198857 | 380 | # TODO: move these to /usr/lib/rpm/macros |
36433112 | 381 | cat > .builder-rpmmacros <<'EOF' |
fb198857 ER |
382 | %requires_releq_kernel_up %{nil} |
383 | %requires_releq_kernel_smp %{nil} | |
6b8134e3 | 384 | %requires_releq() %{nil} |
bb01dee9 | 385 | %pyrequires_eq() %{nil} |
559d511f | 386 | %requires_eq() %{nil} |
c13be3d1 | 387 | %requires_eq_to() %{nil} |
fb198857 ER |
388 | %releq_kernel_up ERROR |
389 | %releq_kernel_smp ERROR | |
74d9fd14 | 390 | %kgcc_package ERROR |
237bd3f1 | 391 | %_fontsdir ERROR |
7141278d | 392 | %ruby_version ERROR |
393 | %ruby_ver_requires_eq() %{nil} | |
394 | %ruby_mod_ver_requires_eq() %{nil} | |
c13be3d1 | 395 | %__php_api_requires() %{nil} |
7141278d | 396 | %php_major_version ERROR |
397 | %php_api_version ERROR | |
398 | %py_ver ERROR | |
fb198857 | 399 | EOF |
cd445739 | 400 | case "$RPMBUILD" in |
237bd3f1 ER |
401 | rpm) |
402 | ARGS='-bp' | |
403 | ;; | |
404 | rpmbuild) | |
405 | ARGS='--nodigest --nosignature --nobuild' | |
406 | ;; | |
407 | esac | |
36433112 | 408 | $RPMBUILD --rcfile .builder-rpmrc $ARGS --nodeps --define "prep $dump" $BCOND $TARGET_SWITCH $SPECFILE 2>&1 |
237bd3f1 | 409 | ` |
fb198857 | 410 | if [ $? -gt 0 ]; then |
237bd3f1 ER |
411 | error=$(echo "$rpm_dump" | sed -ne '/^error:/,$p') |
412 | echo "$error" >&2 | |
413 | Exit_error err_build_fail; | |
fb198857 | 414 | fi |
d05e8080 ER |
415 | |
416 | # make small dump cache | |
417 | rpm_dump_cache=`echo "$rpm_dump" | awk ' | |
4e8c3089 ER |
418 | $2 ~ /^SOURCEURL/ {print} |
419 | $2 ~ /^PATCHURL/ {print} | |
420 | $2 ~ /^nosource/ {print} | |
421 | $2 ~ /^PACKAGE_/ {print} | |
d05e8080 ER |
422 | '` |
423 | ||
13974367 | 424 | update_shell_title "cache_rpm_dump: OK!" |
cd445739 AM |
425 | } |
426 | ||
427 | rpm_dump () { | |
428 | if [ -z "$rpm_dump_cache" ] ; then | |
429 | echo "internal error: cache_rpm_dump not called!" 1>&2 | |
430 | fi | |
431 | echo "$rpm_dump_cache" | |
432 | } | |
433 | ||
d05e8080 ER |
434 | get_icons() |
435 | { | |
436 | update_shell_title "get icons" | |
437 | ICONS="`awk '/^Icon:/ {print $2}' ${SPECFILE}`" | |
438 | if [ -z "$ICONS" ]; then | |
439 | return | |
440 | fi | |
441 | ||
4f5cb659 | 442 |