Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
1
Merge Requests
1
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
korinf
etersoft-build-utils
Commits
7341afdc
Commit
7341afdc
authored
Jan 10, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmeterbuild: add wrapper for uni_* build functions with color support
parent
eaaab835
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
rpmeterbuild
bin/rpmeterbuild
+42
-0
No files found.
bin/rpmeterbuild
0 → 100755
View file @
7341afdc
#!/bin/bash
# 2025 (c) Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
#
# Internal wrapper for uni_* build functions
# Allows running build functions as external commands (e.g., via faketty)
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod build buildsrpm
# Force colored compiler output (for GCC/Clang) when running via faketty
if
[
-t
1
]
;
then
COLOR_FLAG
=
"-fdiagnostics-color=always"
export
CFLAGS
=
"
${
CFLAGS
:+
$CFLAGS
}
$COLOR_FLAG
"
export
CXXFLAGS
=
"
${
CXXFLAGS
:+
$CXXFLAGS
}
$COLOR_FLAG
"
fi
CMD
=
"
$1
"
shift
case
"
$CMD
"
in
rpmbuild
)
uni_rpmbuild
"
$@
"
;;
buildreq
)
uni_buildreq
"
$@
"
;;
install
)
uni_rpminstall
"
$@
"
;;
rm
)
uni_rpmrm
"
$@
"
;;
buildsrpm
)
uni_rpmbuildsrpm
"
$@
"
;;
*
)
fatal
"Unknown command:
$CMD
"
;;
esac
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