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
61a0b678
Commit
61a0b678
authored
Feb 06, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmcs: move split spec function to the appropriate module
parent
502917c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
rpmcs
bin/rpmcs
+1
-2
spec
share/eterbuild/functions/spec
+9
-0
No files found.
bin/rpmcs
View file @
61a0b678
...
@@ -126,8 +126,7 @@ do
...
@@ -126,8 +126,7 @@ do
# Prepare for fix only before changelog part
# Prepare for fix only before changelog part
i
=
$SPEC
.tmpspecbeforechangelog
i
=
$SPEC
.tmpspecbeforechangelog
cat
$SPEC
|
awk
'BEGIN{desk=0}{if (desk==0) {print}; if(/^%changelog/&&desk==0){desk++}}'
>
$i
separate_changelog
$SPEC
$i
$SPEC
.tmpspecchangelog
cat
$SPEC
|
awk
'BEGIN{desk=0}{if (desk==1) {print}; if(/^%changelog/&&desk==0){desk++}}'
>
$SPEC
.tmpspecchangelog
# Unneeded on ALT
# Unneeded on ALT
subst
"s|^Prefix:.*
$|
|"
$i
subst
"s|^Prefix:.*
$|
|"
$i
...
...
share/eterbuild/functions/spec
View file @
61a0b678
...
@@ -224,3 +224,12 @@ get_gear_spec()
...
@@ -224,3 +224,12 @@ get_gear_spec()
echo
$trySpec
echo
$trySpec
test
-f
"
$trySpec
"
test
-f
"
$trySpec
"
}
}
separate_changelog
()
{
local
SPEC
=
"
$1
"
[
"
$SPEC
"
!=
"
$2
"
]
&&
[
"
$SPEC
"
!=
"
$3
"
]
||
fatal
"separate_changelog: cannot write to itself"
cat
$SPEC
|
awk
'BEGIN{desk=0}{if (desk==0) {print}; if(/^%changelog/&&desk==0){desk++}}'
>
"
$2
"
cat
$SPEC
|
awk
'BEGIN{desk=0}{if (desk==1) {print}; if(/^%changelog/&&desk==0){desk++}}'
>
"
$3
"
}
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