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
b8520a79
Commit
b8520a79
authored
Nov 29, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
introduce prepare_rpmdir, use in for create RPMDIR
parent
efee2d2f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
rpmbb
bin/rpmbb
+1
-4
rpmbph
bin/rpmbph
+3
-0
rpmbs
bin/rpmbs
+2
-2
common
share/eterbuild/functions/common
+9
-0
No files found.
bin/rpmbb
View file @
b8520a79
...
...
@@ -72,10 +72,7 @@ LISTRPMARGS=$@
parse_cmd_pre_spec
"
$@
"
mygetopts
$LISTARGS
mkdir
-p
"
$LOGDIR
"
mkdir
-p
"
$RPMTOPDIR
/RPMS"
test
-L
"
$RPMTOPDIR
/tmp"
||
ln
-s
$RPMTMPDIR
$RPMTOPDIR
/tmp
prepare_rpmdir
test
-z
"
$LISTNAMES
"
&&
fatal
"Please run with spec(s) name"
test
-n
"
$LISTRPMARGS
"
&&
echog
"Run
$RPMBUILD
with options: '
$LISTRPMARGS
'"
...
...
bin/rpmbph
View file @
b8520a79
...
...
@@ -218,7 +218,10 @@ if [ "$PKGVENDOR" != "alt" ] ; then
# Due possible using %release in Source: and Patch: names
subst
"s|^
\(
Source.*
\)
%release|
\1
$RELEASE
|g"
$SPECNAME
subst
"s|^
\(
Patch.*
\)
%release|
\1
$RELEASE
|g"
$SPECNAME
subst
"s|^%setup|%setup -q|g"
$SPECNAME
# obsoletes since Slackware/13 (rpm 4.10)
subst
"s|^BuildPreReq:|BuildRequires:|g"
$SPECNAME
fi
# Auto*=yes,nomingw32 works only since ALT 4.1
...
...
bin/rpmbs
View file @
b8520a79
...
...
@@ -194,6 +194,8 @@ parse_cmd_pre_spec "$@"
# quotes brokes option handling
mygetopts
$LISTARGS
prepare_rpmdir
#############################
LISTBUILT
=
""
CURDIR
=
`
pwd
`
...
...
@@ -332,8 +334,6 @@ fi
cat
$RPMDIR
/uploaded.log.tmp |
grep
task |
head
-n2
|
tail
-n1
>>
$RPMDIR
/uploaded.log
for
i
in
$LISTBUILT
;
do
# FIXME: more general way
mkdir
-p
$LOGDIR
LOGFILE
=
"
$LOGDIR
/
`
basename
$i
.src.rpm
`
$MENVARG
.log"
echo
>>
$LOGFILE
date
>>
$LOGFILE
...
...
share/eterbuild/functions/common
View file @
b8520a79
...
...
@@ -96,6 +96,15 @@ assert_var()
done
}
prepare_rpmdir
()
{
assert_var RPMTOPDIR LOGDIR
mkdir
-p
$(
realpath
$RPMDIR
)
mkdir
-p
$(
realpath
$RPMTOPDIR
)
mkdir
-p
"
$LOGDIR
"
mkdir
-p
"
$RPMTOPDIR
/RPMS"
test
-L
"
$RPMTOPDIR
/tmp"
||
ln
-s
$RPMTMPDIR
$RPMTOPDIR
/tmp
}
get_root_git_dir
()
{
...
...
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