repl 314 B

1234567891011121314151617
  1. #!/bin/rc -e
  2. # Derived from the 9legacy build scripts.
  3. rfork en
  4. . funcs
  5. root=$build
  6. repl=$build/dist/replica
  7. proto=$repl/plan9.proto
  8. db=$repl/plan9.db
  9. db2=$repl/_plan9.db
  10. log=$repl/plan9.log
  11. > $db
  12. replica/updatedb -p $proto -r $root -x $repl $db >$log
  13. replica/compactdb $db >/tmp/a && mv /tmp/a $db
  14. cp $db $db2