[projects/geninitrd] use fixed DESTDIR in verbose logs

glen glen at pld-linux.org
Tue May 13 22:42:31 CEST 2014


commit 7f5eccc0cdae8c93d9dacfbdb1ba0a94c5756c68
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue May 13 23:42:24 2014 +0300

    use fixed DESTDIR in verbose logs

 geninitrd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 02dfc0e..62b8f8b 100755
--- a/geninitrd
+++ b/geninitrd
@@ -479,10 +479,10 @@ inst() {
 	set -- $src
 	local parentDir=$(dirname $DESTDIR$dest)
 	if [ ! -d "$parentDir" ]; then
-		verbose "+ mkdir -p $parentDir"
+		verbose "+ mkdir -p DESTDIR${parentDir#$DESTDIR}"
 		mkdir -p $parentDir
 	fi
-	verbose "+ cp $* $DESTDIR$dest"
+	verbose "+ cp $* DESTDIR$dest"
 	cp -HR "$@" "$DESTDIR$dest"
 }
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/7f5eccc0cdae8c93d9dacfbdb1ba0a94c5756c68



More information about the pld-cvs-commit mailing list