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
bd5b4fca
Verified
Commit
bd5b4fca
authored
Feb 20, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common: move BUILDERDIR, create_tmp, remove_tmp from build-distro
parent
9750d133
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
build-distro
bin/build-distro
+2
-12
common
bin/common
+10
-0
deploy
bin/deploy
+2
-3
No files found.
bin/build-distro
View file @
bd5b4fca
#!/bin/bash
#!/bin/bash
BUILDERDIR
=
$(
realpath
"
$(
dirname
"
$0
"
)
"
/..
)
DEBUG
=
0
DEBUG
=
0
ALLDISTROS
=
false
ALLDISTROS
=
false
NVIDIA
=
false
NVIDIA
=
false
CLEAN
=
false
CLEAN
=
false
DESKTOP_ENVS
=()
# Список выбранных рабочих окружений (например, gnome, kde, hyprland)
DESKTOP_ENVS
=()
NETWORK
=
false
NETWORK
=
false
# базовые функции
# базовые функции
# shellcheck disable=SC1091
# shellcheck disable=SC1091
.
"
$
BUILDERDIR
"
/bin/common
.
"
$
(
dirname
"
$0
"
)
/common"
if
[
-z
"
$VMDIR
"
]
;
then
if
[
-z
"
$VMDIR
"
]
;
then
VMDIR
=
"/var/ftp/pvt/ISO/testing/template/iso"
VMDIR
=
"/var/ftp/pvt/ISO/testing/template/iso"
...
@@ -21,14 +19,6 @@ if [ -z "$PROFILESDIR" ]; then
...
@@ -21,14 +19,6 @@ if [ -z "$PROFILESDIR" ]; then
PROFILESDIR
=
"
$BUILDERDIR
/mkimage-profiles"
PROFILESDIR
=
"
$BUILDERDIR
/mkimage-profiles"
fi
fi
create_tmp
()
{
mktemp
-d
-t
ximper-builder.XXXXXXX
}
remove_tmp
()
{
rm
-rf
"
$1
"
}
print_build_info
()
{
print_build_info
()
{
echo
"____________________"
echo
"____________________"
print_blue
"VMDIR:
$VMDIR
"
print_blue
"VMDIR:
$VMDIR
"
...
...
bin/common
View file @
bd5b4fca
#!/bin/bash
#!/bin/bash
BUILDERDIR
=
$(
realpath
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
/..
)
create_tmp
()
{
mktemp
-d
-t
ximper-builder.XXXXXXX
}
remove_tmp
()
{
rm
-rf
"
$1
"
}
print_error
()
{
print_error
()
{
printf
"
\0
33[1;31m%s
\0
33[0m
\n
"
"
$1
"
printf
"
\0
33[1;31m%s
\0
33[0m
\n
"
"
$1
"
exit
1
exit
1
...
...
bin/deploy
View file @
bd5b4fca
#!/bin/bash
#!/bin/bash
BUILDERDIR
=
$(
realpath
"
$(
dirname
"
$0
"
)
"
/..
)
SOURCE_DIR
=
"/var/ftp/pvt/ISO/testing/template/iso"
SOURCE_DIR
=
"/var/ftp/pvt/ISO/testing/template/iso"
IS_DEVEL
=
false
IS_DEVEL
=
false
DEBUG
=
false
DEBUG
=
false
COMMIT
=
false
COMMIT
=
false
# базовые функции
# базовые функции
# shellcheck disable=SC1091
# shellcheck disable=SC1091
.
"
$
BUILDERDIR
"
/bin/common
.
"
$
(
dirname
"
$0
"
)
/common"
OPTS
=
$(
getopt
-o
h
--long
help
,debug,devel,commit
--
"
$@
"
)
||
{
OPTS
=
$(
getopt
-o
h
--long
help
,debug,devel,commit
--
"
$@
"
)
||
{
print_error
"Ошибка обработки опций."
print_error
"Ошибка обработки опций."
...
...
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