]> pd.if.org Git - zpackage/blobdiff - zpm-note
remove development path
[zpackage] / zpm-note
index be90e9bbcac18615f39c247f302eab8444482ab8..26af9e3690e1610fea45147be858ef4fd3d906bc 100755 (executable)
--- a/zpm-note
+++ b/zpm-note
@@ -56,7 +56,8 @@ case $cmd in
                find $SPOOL/open -type f -printf "%P\n" | sort -n | while read note ; do
                        subject=$(head -1 $SPOOL/open/$note)    
                        date=$(stat -c '%y' $SPOOL/open/$note | cut -f1 -d' ')
-                       printf '%*s %s %s\n' $len $note "$date" "$subject"
+                       owner=$(stat -c '%U' $SPOOL/open/$note)
+                       printf '%*s %8s %s %s\n' $len $note $owner "$date" "$subject"
                done
                ;;
        ack)
@@ -81,8 +82,8 @@ case $cmd in
                        *)
                                tmp=$(mktemp -p $SPOOL/open)
                                cp $1 $tmp
-                               flock -n -E3 $tmp vim $tmp
-                               if [ $? -eq 3 ]; then echo already editing $1; exit 1; fi
+                               #flock -n -E3 $tmp vim $tmp
+                               #if [ $? -eq 3 ]; then echo already editing $1; exit 1; fi
                                file=$(zpm sequence notes)
                                mv $tmp $SPOOL/open/$pkg/$file || { rm -f $tmp; exit 1; }
                                echo created $file