Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-builder
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
Ximper Linux
ximper-builder
Commits
5f92a85c
Verified
Commit
5f92a85c
authored
Feb 20, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build-distro: simplify build loop, remove dead code in option parsing
parent
d9364696
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
31 deletions
+10
-31
build-distro
bin/build-distro
+10
-31
No files found.
bin/build-distro
View file @
5f92a85c
...
...
@@ -126,7 +126,7 @@ move_iso() {
mv
-vf
"
$TMP
"
/out/ximper-
*
.iso
"
$VMDIR
"
/
"
$DFILENAME
"
}
OPTS
=
$(
getopt
-o
h
--long
help
,nvidia,
debug,clean,all
,de:,net,network,repos:
--
"
$@
"
)
||
{
OPTS
=
$(
getopt
-o
h
--long
help
,nvidia,
all,debug,clean
,de:,net,network,repos:
--
"
$@
"
)
||
{
print_error
"Ошибка обработки опций."
}
...
...
@@ -146,7 +146,7 @@ while true; do
printf
"
\n
"
printf
" Настройки образа:
\n
"
printf
" --nvidia Собрать дистрибутив с драйверами NVIDIA
\n
"
printf
" --all Собрать все
дистрибутив
ы (default + nvidia)
\n
"
printf
" --all Собрать все
вариант
ы (default + nvidia)
\n
"
printf
" -r | --repos Установить используемые репозитории
\n
"
printf
" (По умолчанию: deferred,ximper)
\n
"
printf
" (репозитории используются тольок во время сборки)
\n
"
...
...
@@ -196,16 +196,6 @@ while true; do
shift
break
;;
""
)
shift
;;
*
)
if
[
-n
"
$REPOS
"
]
&&
[
"
$1
"
=
"
$REPOS
"
]
;
then
shift
continue
fi
print_error
"Неверная опция:
$1
"
;;
esac
done
...
...
@@ -233,32 +223,21 @@ fi
print_build_info
# Генерация списка задач на сборку
build_list
=()
pushd
"
$PROFILESDIR
"
>
/dev/null
||
exit
handle_uncommitted_changes
for
desktop_env
in
"
${
DESKTOP_ENVS
[@]
}
"
;
do
if
[
"
$ALLDISTROS
"
==
true
]
;
then
build_list+
=(
"
$desktop_env
:nvidia"
)
build_list+
=(
"
$desktop_env
:default"
)
makebuild
"default"
"
$desktop_env
"
makebuild
"nvidia"
"
$desktop_env
"
elif
[
"
$NVIDIA
"
==
true
]
;
then
makebuild
"nvidia"
"
$desktop_env
"
else
if
[
"
$NVIDIA
"
==
true
]
;
then
build_list+
=(
"
$desktop_env
:nvidia"
)
else
build_list+
=(
"
$desktop_env
:default"
)
fi
makebuild
"default"
"
$desktop_env
"
fi
done
pushd
"
$PROFILESDIR
"
>
/dev/null
||
exit
handle_uncommitted_changes
# Выполнение сборки для каждого элемента в списке
for
build_item
in
"
${
build_list
[@]
}
"
;
do
IFS
=
':'
read
-r
desktop_env build_type
<<<
"
$build_item
"
makebuild
"
$build_type
"
"
$desktop_env
"
done
revert_temp_commit
cleartmp
popd
>
/dev/null
||
exit
...
...
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