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
Roman Alifanov
etersoft-build-utils
Commits
68db61bd
You need to sign in or sign up before continuing.
Commit
68db61bd
authored
May 22, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repl: separate filter_deb_pkgnames
parent
8c775952
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
repl
share/eterbuild/functions/repl
+6
-4
No files found.
share/eterbuild/functions/repl
View file @
68db61bd
...
@@ -3,7 +3,11 @@
...
@@ -3,7 +3,11 @@
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
# Public domain
PKGREPLBASE
=
$ETERBUILDDIR
/pkgrepl
# convert pkg names to Debian style
filter_deb_pkgnames
()
{
sed
-e
"s|^ *
\(
.*
\)
-devel *
\$
|
\1
-dev|g"
|
tr
"[A-Z]"
"[a-z]"
}
# Get replacement rule for ALT package to local in $1 (scan for files in $@)
# Get replacement rule for ALT package to local in $1 (scan for files in $@)
# sets ALTPKGNAME, TARGETPKGNAME variable
# sets ALTPKGNAME, TARGETPKGNAME variable
...
@@ -29,10 +33,8 @@ tolocal_anyrepl()
...
@@ -29,10 +33,8 @@ tolocal_anyrepl()
test
-n
"
$REPLRULE
"
&&
return
0
test
-n
"
$REPLRULE
"
&&
return
0
done
done
# Hack for default replace -devel to -dev on Deb target
# Fix upper case
if
[
"
$PKGFORMAT
"
=
"deb"
]
;
then
if
[
"
$PKGFORMAT
"
=
"deb"
]
;
then
local
NEWRESULT
=
`
echo
$GREP
|
sed
-e
"s|^ *
\(
.*
\)
-devel *
\$
|
\1
-dev|g"
|
tr
"[A-Z]"
"[a-z]"
`
local
NEWRESULT
=
`
echo
$GREP
|
filter_deb_pkgnames
`
[
"
$NEWRESULT
"
=
"
$GREP
"
]
&&
return
1
[
"
$NEWRESULT
"
=
"
$GREP
"
]
&&
return
1
ALTPKGNAME
=
$GREP
ALTPKGNAME
=
$GREP
TARGETPKGNAME
=
"
$NEWRESULT
"
TARGETPKGNAME
=
"
$NEWRESULT
"
...
...
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