Commit Diff


commit - eb1a7f01bde001bbb3a09b0abc5c28e7a3d4b5b9
commit + edeab4fbc07a7b4862dced73b0a64f11c3a76c73
blob - 8f091b5531e22ddaa4c06f0797faf4bac4a902d2
blob + 349dd0537cb0b84522ed971d557b0a959160bca2
--- Makefile
+++ Makefile
@@ -1,7 +1,7 @@
 .POSIX:
 PREFIX = /usr/local
 MANPREFIX = ${PREFIX}/man
-VERSION = 0.4
+VERSION = 0.5
 
 all:
 
@@ -12,4 +12,4 @@ install:
 	cp -f got-archive.1 ${DESTDIR}${MANPREFIX}/man1/
 
 uninstall:
-	rm -f ${DESTDIR}${PREFIX}/bin/got-archive
+	rm -f ${DESTDIR}${PREFIX}/bin/got-archive ${MANPREFIX}/man1/got-archive.1
blob - 8c34af6bf9e5e9586555f3d7dc3c93549c24fad2
blob + ccf73d36104ef9920a02a6202caee0d5d8c0cf5f
--- got-archive
+++ got-archive
@@ -73,9 +73,9 @@ gen() {
 	[ -e "$tarfile" ] && [ "$force" = 0 ] && return
 
 	rm -rf "$cdir"
-	got checkout -q -c "$1" "$repo" "$cdir" || die 3 "Error: failed to checkout: $2"
+	got checkout -q -c "$1" "$repo" "$cdir" || die 3 "Error: $2: failed to checkout: $2"
 	rm -rf "$cdir/.got"
-	tar -czf "$tarfile" -C "$tmpdir" "$2" || die 4 "Error: failed to create tarball: $tarfile"
+	tar -czf "$tarfile" -C "$tmpdir" "$2" || die 4 "Error: $2: failed to create tarball: $tarfile"
 	rm -rf "$cdir"
 }
 
@@ -83,7 +83,7 @@ if [ "$all" = 1 ]; then
 	[ $# -ne 0 ] && die 1 "Error: Can't combine -a and explicit refs" 
 
 	tags=$(find "$repo/refs/tags" -type f -exec basename {} \; 2>/dev/null)
-	[ $? -ne 0 ] && die 5 "Error: no tags found"
+	[ $? -ne 0 ] && die 5 "Error: $name: no tags found"
 	set -- $tags
 fi