]> pd.if.org Git - zpackage/blobdiff - zpm-add
add makefile as shell dependency
[zpackage] / zpm-add
diff --git a/zpm-add b/zpm-add
index 6dc08b7d1dc09bce85dd4241bbe4eb56f55648e1..d5fca8e2b225c0b05ae130c92e8ab3b3a273005c 100755 (executable)
--- a/zpm-add
+++ b/zpm-add
@@ -125,12 +125,15 @@ pkgrel=$(zpm quote "$release")
 #strip=$(cleanpath "$strip")
 for path in $*; do
        #echo adding $path
+if [ $verbose -gt 0 ]; then
+       printf "adding %s\n" $path
+fi
 
        # only stat the file for items not set on the command line
-       mode=${clmode:-$(zpm stat -f '%a' $path)}
-       username=${cluser:-$(zpm stat -f '%U' $path)}
-       groupname=${clgroup:-$(zpm stat -f '%G' $path)}
-       mtime=${clmtime:-$(zpm stat -f '%y' $path)}
+       mode=${clmode:-$(zpm stat -l -f '%a' $path)}
+       username=${cluser:-$(zpm stat -l -f '%U' $path)}
+       groupname=${clgroup:-$(zpm stat -l -f '%G' $path)}
+       mtime=${clmtime:-$(zpm stat -l -f '%y' $path)}
        filetype=${cltype:-$(zpm stat -l -f '%t' "$path")}
 
        rpath="$path"