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
6da133fa
Commit
6da133fa
authored
Jan 23, 2011
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rewrite replacement rule: check for each file from new version to old
parent
95f68b25
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
9 deletions
+25
-9
config
share/eterbuild/functions/config
+1
-1
repl
share/eterbuild/functions/repl
+12
-5
test_repl_find.sh
tests/test_repl_find.sh
+12
-3
No files found.
share/eterbuild/functions/config
View file @
6da133fa
...
...
@@ -3,7 +3,7 @@
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
ETERBUILDVERSION
=
1
8
6
ETERBUILDVERSION
=
1
9
6
SUDO
=
"sudo"
...
...
share/eterbuild/functions/repl
View file @
6da133fa
...
...
@@ -71,6 +71,16 @@ print_grpreq()
eval_spec
${
1
}
|
grep
"^Group"
|
sed
-e
"s|^.*:||g"
|
sort
-u
| filter_strip_spaces
}
internal_repl_list
()
{
local
REPLBASE
=
"
$1
"
local
ARCHEXT
=
"
$2
"
local
FINDPKG
=
$REPLBASE
.
$VENDOR
.
$DISTRVERSION$ARCHEXT
(
ls
-1
$PKGREPLBASE
/pkgrepl.
$VENDOR
*
$ARCHEXT
|
(
test
-n
"
$ARCHEXT
"
&&
cat
||
grep
-v
"x86_64"
)
;
echo
$FINDPKG
)
|
sort
-u
|
grep
"^
$FINDPKG
\$
"
-B1000
|
sort
-r
echo
$REPLBASE
.
$VENDOR$ARCHEXT
[
"
$VENDOR
"
=
"alt"
]
||
echo
"
$REPLBASE
.
$TARGET$ARCHEXT
"
}
# internal
print_replbased_list
()
{
...
...
@@ -78,15 +88,12 @@ print_replbased_list()
# VENDOR, TARGET is already defined in detect_target_env() func
[
-z
"
$DISTRVERSION
"
]
&&
DISTRVERSION
=
`
$(
$DISTRVENDOR
-v
)
`
# separate checking for x86_64
if
[
$DEFAULTARCH
=
"x86_64"
]
;
then
echo
-n
"
$REPLBASE
.
$VENDOR
.
$DISTRVERSION
.x86_64
$REPLBASE
.
$VENDOR
.x86_64 "
[
"
$VENDOR
"
=
"alt"
]
||
echo
-n
"
$REPLBASE
.
$TARGET
.x86_64 "
internal_repl_list
$REPLBASE
.x86_64
fi
# general rules listing
echo
-n
"
$REPLBASE
.
$VENDOR
.
$DISTRVERSION
$REPLBASE
.
$VENDOR
"
[
"
$VENDOR
"
=
"alt"
]
||
echo
-n
"
$REPLBASE
.
$TARGET
"
internal_repl_list
$REPLBASE
""
}
# TODO: list in alph. order and use if <= then our version
...
...
tests/test_repl_find.sh
View file @
6da133fa
...
...
@@ -31,7 +31,7 @@ for i in `print_grprepl_list` ; do
done
}
VENDOR
=
F
edora
VENDOR
=
f
edora
TARGET
=
rpm
DISTRVERSION
=
10
...
...
@@ -54,10 +54,19 @@ check_repl rpm-build-compat rpm-build-altlinux-compat
check_repl libusb-devel libusb-devel
VENDOR
=
Debian
VENDOR
=
ubuntu
TARGET
=
deb
DISTRVERSION
=
5.0
DISTRVERSION
=
9.04
echo
"Correct replacement checking for
$VENDOR
/
$DISTRVERSION
(target
$TARGET
):"
check_repl rpm-build-compat rpm-build-altlinux-compat
check_repl libusb-devel libusb-dev
VENDOR
=
mdv
DISTRVERSION
=
2010.1
DEFAULTARCH
=
x86_64
TARGET
=
rpm
#FINDPKG=$PKGREPLBASE.pkgrepl.$VENDOR.$DISTRVERSION
#( ls -1 $PKGREPLBASE/pkgrepl.$VENDOR* | grep -v x86_64 ; echo $FINDPKG ) | sort -u | grep "^$FINDPKG\$" -B1000 | sort -r
print_pkgrepl_list
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