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
20afea58
Commit
20afea58
authored
Jul 25, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup, add default rule on deb for replace -devel to -dev
parent
8f5d0c4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
repl
share/eterbuild/functions/repl
+13
-6
No files found.
share/eterbuild/functions/repl
View file @
20afea58
...
...
@@ -23,11 +23,17 @@ tolocal_anyrepl()
#REPLRULE=`echo $REPLRULE | sed -r -e 's,|,!,g'`
ALTPKGNAME
=
`
echo
$REPLRULE
|
cut
-d
"|"
-f1
|
sed
-e
"s|
\+
|
\\\\\+
|g"
`
TARGETPKGNAME
=
`
echo
$REPLRULE
|
cut
-d
"|"
-f2
|
sed
-e
"s|
\+
|
\\\\\+
|g"
`
# for compatibility
REPLRULE1
=
$ALTPKGNAME
REPLRULE2
=
$TARGETPKGNAME
test
-n
"
$REPLRULE
"
&&
return
0
done
# Hack for default replace -devel to -dev on Deb target
if
[
"
$TARGET
"
=
"deb"
]
;
then
local
NEWRESULT
=
`
echo
$GREP
|
sed
-e
"s|^ *
\(
.*
\)
-devel *
\$
|
\1
-dev|g"
`
[
"
$NEWRESULT
"
=
"
$GREP
"
]
&&
return
1
ALTPKGNAME
=
$GREP
TARGETPKGNAME
=
"
$NEWRESULT
"
return
0
fi
return
1
}
...
...
@@ -87,11 +93,12 @@ print_grprepl_list()
# Prints out buildreqs in target notation for SPEC (1st arg)
print_target_buildreq
()
{
local
i
local
i
SPACE
=
""
TARGETPKGNAME
# Build list in target ($VENDOR) notation for package's buildreqs
for
i
in
`
print_buildreq
${
1
}
`
;
do
# get target name or just print out original one
tolocal_anyrepl
$i
`
print_pkgrepl_list
`
||
echo
-n
"
$i
"
echo
-n
"
$TARGETPKGNAME
"
tolocal_anyrepl
$i
`
print_pkgrepl_list
`
||
TARGETPKGNAME
=
"
$i
"
echo
-n
"
$SPACE
${
TARGETPKGNAME
}
"
SPACE
=
" "
done
}
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