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
91e4ca95
Commit
91e4ca95
authored
Oct 31, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repl: impove autoreplace, make recursive search
parent
fb61347b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
repl
share/eterbuild/functions/repl
+15
-14
No files found.
share/eterbuild/functions/repl
View file @
91e4ca95
...
...
@@ -33,32 +33,33 @@ tolocal_anyrepl()
test
-n
"
$REPLRULE
"
&&
return
0
done
# Part of local hack
NEWRESULT
=
"
$GREP
"
if
[
"
$PKGFORMAT
"
=
"deb"
]
;
then
local
NEWRESULT
=
`
echo
$GREP
| filter_deb_pkgnames
`
[
"
$NEWRESULT
"
=
"
$GREP
"
]
&&
return
1
ALTPKGNAME
=
$GREP
TARGETPKGNAME
=
"
$NEWRESULT
"
return
0
fi
# Add hack for replace lib with lib64 on Mandriva
if
[
"
$DISTRNAME
"
=
"Mandriva"
]
&&
[
$BUILDARCH
=
"x86_64"
]
;
then
local
NEWRESULT
=
`
echo
$GREP
|
sed
-e
"s|^lib
\(
[^6]
\)
|lib64
\1
|g"
`
[
"
$NEWRESULT
"
=
"
$GREP
"
]
&&
return
1
ALTPKGNAME
=
$GREP
TARGETPKGNAME
=
"
$NEWRESULT
"
return
0
fi
if
[
"
$DISTRNAME
"
=
"ArchLinux"
]
||
[
"
$DISTRNAME
"
=
"
Slackware"
]
||
[
"
$DISTRNAME
"
=
"
FreeBSD"
]
;
then
if
[
"
$DISTRNAME
"
=
"ArchLinux"
]
||
[
"
$DISTRNAME
"
=
"FreeBSD"
]
;
then
local
NEWRESULT
=
`
echo
$GREP
|
sed
-e
"s|^ *
\(
.*
\)
-devel *
\$
|
\1
|g"
|
tr
"[A-Z]"
"[a-z]"
`
[
"
$NEWRESULT
"
=
"
$GREP
"
]
&&
return
1
ALTPKGNAME
=
$GREP
TARGETPKGNAME
=
"
$NEWRESULT
"
return
0
fi
return
1
if
[
"
$DISTRNAME
"
=
"Slackware"
]
;
then
local
NEWRESULT
=
`
echo
$GREP
|
sed
-e
"s|^ *
\(
.*
\)
-devel *
\$
|
\1
|g"
`
fi
ALTPKGNAME
=
$GREP
TARGETPKGNAME
=
"
$NEWRESULT
"
[
"
$NEWRESULT
"
=
"
$GREP
"
]
&&
return
1
# try to resolve recursive
tolocal_anyrepl
$NEWRESULT
$@
return
0
}
# Clean require names from various stuffs
...
...
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