SPECS: pwlib.spec - minimize calling `pwd`

glen glen at pld-linux.org
Sun Aug 27 18:22:53 CEST 2006


Author: glen                         Date: Sun Aug 27 16:22:53 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- minimize calling `pwd`

---- Files affected:
SPECS:
   pwlib.spec (1.127 -> 1.128) 

---- Diffs:

================================================================
Index: SPECS/pwlib.spec
diff -u SPECS/pwlib.spec:1.127 SPECS/pwlib.spec:1.128
--- SPECS/pwlib.spec:1.127	Sun Aug 27 18:07:27 2006
+++ SPECS/pwlib.spec	Sun Aug 27 18:22:48 2006
@@ -181,10 +181,11 @@
 	--enable-plugins \
 	--enable-v4l2
 
+dir=$(pwd)
 %{__make} %{?debug:debugshared}%{!?debug:optshared} \
-	PWLIBDIR="`pwd`" \
-	PWLIBMAKEDIR="`pwd`/make" \
-	PW_LIBDIR="`pwd`/lib" \
+	PWLIBDIR="$dir" \
+	PWLIBMAKEDIR="$dir/make" \
+	PW_LIBDIR="$dir/lib" \
 	OPTCCFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}" \
 	CXX="%{__cxx}"
 
@@ -193,11 +194,12 @@
 
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/%{name}}
 
+dir=$(pwd)
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT \
-	PWLIBDIR="`pwd`" \
-	PWLIBMAKEDIR="`pwd`/make" \
-	PW_LIBDIR="`pwd`/lib"
+	PWLIBDIR="$dir" \
+	PWLIBMAKEDIR="$dir/make" \
+	PW_LIBDIR="$dir/lib" \
 
 cp -d lib/lib*.a $RPM_BUILD_ROOT%{_libdir}
 cp version.h $RPM_BUILD_ROOT%{_includedir}/%{name}
@@ -263,6 +265,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.128  2006/08/27 16:22:48  glen
+- minimize calling `pwd`
+
 Revision 1.127  2006/08/27 16:07:27  rotom
 - up to 1.10.1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/pwlib.spec?r1=1.127&r2=1.128&f=u



More information about the pld-cvs-commit mailing list