ar89 240 B

123456789101112131415
  1. #!/bin/rc
  2. flagfmt='c,d,p,r,t,u,v,x'
  3. args='archive [files ...]'
  4. if(! ifs=() eval `{aux/getflags $*} || ~ $#* 0) {
  5. aux/usage
  6. exit usage
  7. }
  8. key=''
  9. for(i in c d p r t x u v)
  10. if(f=flag$i ~ $#$f 1)
  11. key=$key$i
  12. exec /$cputype/bin/ar $key $*