]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- cvslog: work also if there's no path
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 3 Nov 2006 11:28:35 +0000 (11:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-build.sh -> 1.7

rpm-build.sh

index 52e097d6b82a3865796f435ef4b9fd211ee42cbb..1fe921911607c6a6bc1f4af02a95430e5418b80f 100644 (file)
@@ -91,5 +91,7 @@ sed -e '
 # 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##*/})
 }
This page took 0.041531 seconds and 4 git commands to generate.