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
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
korinf
etersoft-build-utils
Commits
fffde283
Commit
fffde283
authored
Jul 20, 2008
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move build_buildroot to rpm functions file
parent
a7414eab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
rpmbb
etersoft-build-utils/bin/rpmbb
+0
-15
rpm
etersoft-build-utils/share/eterbuild/functions/rpm
+15
-0
No files found.
etersoft-build-utils/bin/rpmbb
View file @
fffde283
...
@@ -22,21 +22,6 @@ if [ "$1" = "--helper" ]; then
...
@@ -22,21 +22,6 @@ if [ "$1" = "--helper" ]; then
exit
$?
exit
$?
fi
fi
# get correct BUILDROOT, run build_rpms_name before!
build_buildroot
()
{
test
-z
"
$BASENAME
"
&&
fatal
"Use build_buildroot with BASENAME defined"
# ALT Only?
BUILDROOT
=
`
rpm
--eval
%buildroot | subst_namever
`
test
-z
"
$BUILDROOT
"
&&
fatal
"Fix rpm's buildroot"
if
[
"
$BUILDROOT
"
=
"%buildroot"
]
;
then
BUILDROOT
=
"
$HOME
/tmp/
$BASENAME
-buildroot"
warning
"Can't get buildroot from RPM, set to
$BUILDROOT
"
return
1
fi
return
0
}
#############################
#############################
Usage
=
"Usage:
$name
[-c -p -i -r] spec..."
Usage
=
"Usage:
$name
[-c -p -i -r] spec..."
...
...
etersoft-build-utils/share/eterbuild/functions/rpm
View file @
fffde283
...
@@ -31,6 +31,21 @@ uni_rpmbuild()
...
@@ -31,6 +31,21 @@ uni_rpmbuild()
[
-n
"
$VERBOSE
"
]
&&
echo
"Run
$COMMAND
$ONEPARAM
$@
"
||
:
[
-n
"
$VERBOSE
"
]
&&
echo
"Run
$COMMAND
$ONEPARAM
$@
"
||
:
}
}
# get correct BUILDROOT, run build_rpms_name before!
build_buildroot
()
{
test
-z
"
$BASENAME
"
&&
fatal
"Use build_buildroot with BASENAME defined"
# ALT Only?
BUILDROOT
=
`
rpm
--eval
%buildroot | subst_namever
`
test
-z
"
$BUILDROOT
"
&&
fatal
"Fix rpm's buildroot"
if
[
"
$BUILDROOT
"
=
"%buildroot"
]
;
then
BUILDROOT
=
"
$HOME
/tmp/
$BASENAME
-buildroot"
warning
"Can't get buildroot from RPM, set to
$BUILDROOT
"
return
1
fi
return
0
}
# .
# .
# !
# !
# Name:
# Name:
...
...
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