Fix warnings during debuginfo generation
Commit f3b87dde
removed a needed 'shift' from mingw-find-debuginfo.sh,
which made debuginfo generation often complain about directories not
found.
Add the 'shift' back and at the same time improve argument parsing error
messages.
This commit is contained in:
parent
f14297dd84
commit
3fc8958472
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: mingw-filesystem
|
Name: mingw-filesystem
|
||||||
Version: 95
|
Version: 95
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: MinGW cross compiler base filesystem and environment
|
Summary: MinGW cross compiler base filesystem and environment
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -250,6 +250,9 @@ install -m 0644 %{SOURCE12} $RPM_BUILD_ROOT%{_datadir}/mingw/
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 16 2012 Kalev Lember <kalevlember@gmail.com> - 95-6
|
||||||
|
- Fix warnings during debuginfo generation
|
||||||
|
|
||||||
* Fri Mar 16 2012 Kalev Lember <kalevlember@gmail.com> - 95-5
|
* Fri Mar 16 2012 Kalev Lember <kalevlember@gmail.com> - 95-5
|
||||||
- Simplify the mingw_make_install macro, also moving it to the deprecated
|
- Simplify the mingw_make_install macro, also moving it to the deprecated
|
||||||
section
|
section
|
||||||
|
@ -2,10 +2,14 @@
|
|||||||
# mingw-find-debuginfo.sh - automagically generate debug info and file list
|
# mingw-find-debuginfo.sh - automagically generate debug info and file list
|
||||||
# for inclusion in an rpm spec file for mingw-* packages.
|
# for inclusion in an rpm spec file for mingw-* packages.
|
||||||
|
|
||||||
if [ -z "$1" ] ; then BUILDDIR="."
|
if [ "$#" -lt 2 ] ; then
|
||||||
else BUILDDIR=$1
|
echo "Usage: $0 <BUILDDIR> [TARGET]..."
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
BUILDDIR=$1
|
||||||
|
shift
|
||||||
|
|
||||||
for f in `find $RPM_BUILD_ROOT -type f -name "*.exe" -or -name "*.dll"`
|
for f in `find $RPM_BUILD_ROOT -type f -name "*.exe" -or -name "*.dll"`
|
||||||
do
|
do
|
||||||
case $(mingw-objdump -h $f 2>/dev/null | egrep -o '(debug[\.a-z_]*|gnu.version)') in
|
case $(mingw-objdump -h $f 2>/dev/null | egrep -o '(debug[\.a-z_]*|gnu.version)') in
|
||||||
|
Loading…
Reference in New Issue
Block a user