BSD 2 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Wed, 9 May 1979 03:44:14 +0000 (19:44 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Wed, 9 May 1979 03:44:14 +0000 (19:44 -0800)
Work on file src/astags.sh

Synthesized-from: 2bsd

src/astags.sh [new file with mode: 0755]

diff --git a/src/astags.sh b/src/astags.sh
new file mode 100755 (executable)
index 0000000..03149d0
--- /dev/null
@@ -0,0 +1,11 @@
+# astags
+# (c) 1979 Regents of the University of California
+grep '^[a-zA-Z_].*:' $* >/tmp/$$
+ex - /tmp/$$ << 'EOF'
+1,$s/:[^:]*$//
+1,$s/\(.*\):\(.*\)/\2  \1      \/^\2\//
+w
+q
+'EOF'
+sort -d /tmp/$$ | uniq >! tags
+rm /tmp/$$