head	1.1;
access;
symbols
	rpm-4_4_8-release:1.1.2.1
	rpm-4_4_7-release:1.1.2.1
	rpm-4_4_6-release:1.1.2.1
	rpm-4_4_5-release:1.1.2.1
	rpm-4_4_4-release:1.1.2.1
	rpm-4_4_3-release:1.1.2.1
	rpm-4_4:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2005.11.06.15.46.18;	author jbj;	state dead;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2005.11.06.15.46.18;	author jbj;	state Exp;
branches;
next	;


desc
@@


1.1
log
@file brp-nobuildrootpath was initially added on branch rpm-4_4.
@
text
@@


1.1.2.1
log
@- autogenerate libtool *.la dependencies (#159221).
- autogenerate pkgconfig *.pc dependencies (#159235).
- add brp-nobuildrootpath to scrub $RPM_BUILD_ROOT from *.la and *.pc.
@
text
@a0 17
#!/bin/sh

# If using normal root, avoid changing anything.
if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
    exit 0
fi

# Remove occurences of $RPM_BUILD_ROOT from *.la and *.pc files.
for f in `find $RPM_BUILD_ROOT -type f` ; do
    case "$f" in
    *.la|*.pc)
	grep "${RPM_BUILD_ROOT}\/" "$f" 2>&1 > /dev/null && \
	sed -e "s|${RPM_BUILD_ROOT}/|/|g" "$f" 2>/dev/null > "$f.out" && \
	mv "$f.out" "$f"
	;;
    esac
done
@

