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
5e0974ea
Verified
Commit
5e0974ea
authored
Feb 20, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build-distro: remove cleartmp wrapper
parent
da1b8fa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
16 deletions
+10
-16
build-distro
bin/build-distro
+10
-16
No files found.
bin/build-distro
View file @
5e0974ea
...
...
@@ -25,15 +25,6 @@ print_build_info() {
echo
"--------------------"
}
cleartmp
()
{
[
"
$CLEAN
"
==
true
]
||
return
"
$BUILDERDIR
"
/bin/cleartmp
-i
# shellcheck disable=SC2012
# Удаляем все, кроме самого нового
[
"
$VER
"
==
"devel"
]
&&
ls
-t
"
$VMDIR
"
/ximper-
"
$desktop_env
""
$iso_suffix
"
-devel-
*
-x86_64
.iso |
tail
-n
+2 | xargs
-I
{}
rm
-v
--
{}
}
handle_uncommitted_changes
()
{
# Проверка наличия незакоммиченных изменений
if
git diff-index
--quiet
HEAD
--
;
then
...
...
@@ -65,9 +56,8 @@ revert_temp_commit() {
ifexit
()
{
print_yellow
"Скрипт принудительно завершен. Выполняю некоторые действия..."
revert_temp_commit
CLEAN
=
true
cleartmp
"
$BUILDERDIR
"
/bin/cleartmp
-i
remove_tmp
"
$buildertmp
"
CLEAN
=
false
exit
1
}
...
...
@@ -75,11 +65,15 @@ ifexit() {
trap
ifexit SIGINT SIGTERM
makebuild
()
{
cleartmp
local
build_type
=
$1
desktop_env
=
$2
iso_suffix
=
""
local
desktop_env
=
$2
local
iso_suffix
=
""
if
[
"
$CLEAN
"
==
true
]
;
then
"
$BUILDERDIR
"
/bin/cleartmp
-i
# shellcheck disable=SC2012
[
"
$VER
"
==
"devel"
]
&&
ls
-t
"
$VMDIR
"
/ximper-
"
$desktop_env
""
$iso_suffix
"
-devel-
*
-x86_64
.iso 2>/dev/null |
tail
-n
+2 | xargs
-I
{}
rm
-v
--
{}
fi
if
[
"
$build_type
"
==
"nvidia"
]
;
then
print_blue
"Сборка с NVIDIA и
$desktop_env
"
...
...
@@ -216,7 +210,7 @@ for desktop_env in "${DESKTOP_ENVS[@]}"; do
done
revert_temp_commit
cleartmp
[
"
$CLEAN
"
==
true
]
&&
"
$BUILDERDIR
"
/bin/cleartmp
-i
popd
>
/dev/null
||
exit
remove_tmp
"
$buildertmp
"
...
...
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