SOURCES: rpm-build.sh - cvslog: work also if there's no path
glen
glen at pld-linux.org
Fri Nov 3 12:28:41 CET 2006
Author: glen Date: Fri Nov 3 11:28:41 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- cvslog: work also if there's no path
---- Files affected:
SOURCES:
rpm-build.sh (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SOURCES/rpm-build.sh
diff -u SOURCES/rpm-build.sh:1.6 SOURCES/rpm-build.sh:1.7
--- SOURCES/rpm-build.sh:1.6 Thu Nov 2 23:47:47 2006
+++ SOURCES/rpm-build.sh Fri Nov 3 12:28:35 2006
@@ -91,5 +91,7 @@
# chdir to file location and do 'cvs log'
cvslog() {
local f="$1"
- (cd ${f%/*} && cvs log ${f##*/})
+ local d="${f%/*}"
+ [ "$d" = "$f" ] && d=.
+ (builtin cd $d && cvs log ${f##*/})
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/rpm-build.sh?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list