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
96f71623
Commit
96f71623
authored
Dec 13, 2008
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repl: move common code for repl_list to standalone func
parent
eb764caa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
repl
share/eterbuild/functions/repl
+19
-12
No files found.
share/eterbuild/functions/repl
View file @
96f71623
...
@@ -55,31 +55,38 @@ print_pkgreq()
...
@@ -55,31 +55,38 @@ print_pkgreq()
eval_spec
${
1
}
|
grep
"Requires"
|
sed
-e
"s|^.*:||g"
| clean_pkgreq
eval_spec
${
1
}
|
grep
"Requires"
|
sed
-e
"s|^.*:||g"
| clean_pkgreq
}
}
print_pkgrepl_list
()
# internal
print_replbased_list
()
{
{
local
REPLBASE
=
$PKGREPLBASE
/pkgrepl.
local
REPLBASE
=
"
$1
"
# VENDOR, TARGET is already defined in detect_target_env() func
# VENDOR, TARGET is defined in detect_target_env() func
[
-z
"
$DISTRVERSION
"
]
&&
DISTRVERSION
=
`
distr_vendor
-v
`
[
-z
"
$DISTRVERSION
"
]
&&
DISTRVERSION
=
`
distr_vendor
-v
`
# Get list of replacement rules files
# Get list of replacement rules files
#[ -r "$REPLBASE$VENDOR.$DISTRVERSION" ] &&
echo
-n
"
$REPLBASE$VENDOR
.
$DISTRVERSION
$REPLBASE$VENDOR
"
echo
-n
"
$REPLBASE$VENDOR
.
$DISTRVERSION
$REPLBASE$VENDOR
"
#[ -r "$REPLBASE$VENDOR" ] &&
echo
-n
"
$REPLBASE$VENDOR
"
[
"
$VENDOR
"
!=
"alt"
]
&&
echo
-n
"
$REPLBASE$TARGET
"
[
"
$VENDOR
"
!=
"alt"
]
&&
echo
-n
"
$REPLBASE$TARGET
"
}
}
print_grprepl_list
()
# TODO: list in alph. order and use if <= then our version
print_pkgrepl_list
()
{
{
local
REPLBASE
=
$PKGREPLBASE
/../grprepl/grprepl.
print_replbased_list
$PKGREPLBASE
/pkgrepl.
}
# VENDOR, TARGET is defined in detect_target_env() func
print_grprepl_list
()
[
-z
"
$DISTRVERSION
"
]
&&
DISTRVERSION
=
`
distr_vendor
-v
`
{
# Get list of replacement rules files
print_replbased_list
$PKGREPLBASE
/../grprepl/grprepl.
echo
-n
"
$REPLBASE$VENDOR
.
$DISTRVERSION
$REPLBASE$VENDOR
"
[
"
$VENDOR
"
!=
"alt"
]
&&
echo
-n
"
$REPLBASE$TARGET
"
}
}
# Prints out buildreqs in target notation for SPEC
# Prints out buildreqs in target notation for SPEC (1st arg)
print_target_buildreq
()
print_target_buildreq
()
{
{
local
i
# Build list in target ($VENDOR) notation for package's buildreqs
# Build list in target ($VENDOR) notation for package's buildreqs
for
i
in
`
print_buildreq
${
1
}
`
;
do
for
i
in
`
print_buildreq
${
1
}
`
;
do
# get target name or just print out original one
# get target name or just print out original one
...
...
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