|
|
1.1 ! root 1: LIB=/usr/lib/btree ! 2: if test $# = 0 ! 3: then ! 4: echo 'cbt add|build|cat|creat|delete|report|squash ...' ! 5: exit 1 ! 6: fi ! 7: x=$1 ! 8: shift ! 9: case $x in ! 10: add) case $1 in ! 11: -*) shift ! 12: $LIB/btadd $* ;; ! 13: *) $LIB/btran | $LIB/btadd $* ;; ! 14: esac ;; ! 15: build) case $1 in ! 16: -*) shift ! 17: $LIB/btbuild $* ;; ! 18: *) $LIB/btran | $LIB/btbuild $* ;; ! 19: esac ;; ! 20: cat) $LIB/btcat $* ;; ! 21: creat) $LIB/btcreat $* ;; ! 22: delete) case $1 in ! 23: -*) shift ! 24: $LIB/btdelete $* ;; ! 25: *) $LIB/btran | $LIB/btdelete $* ;; ! 26: esac ;; ! 27: grep) $LIB/btgrep $* ;; ! 28: report) $LIB/btreport $* ;; ! 29: squash) if test $# != 1 ! 30: then ! 31: echo usage cbt squash file-name ! 32: exit 1 ! 33: fi ! 34: $LIB/btsquash $1 ;; ! 35: *) echo 1>&2 unknown command $x ! 36: esac
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.