Operating system for OpenComputers

mkmods.sh 195B

12345678
  1. #!/bin/bash
  2. for f in service/*; do
  3. nf=$(echo $f | cut -d '/' -f 2)
  4. echo $nf
  5. echo os.spawn\(function\(\) >mod-service/$nf
  6. cat $f >> mod-service/$nf
  7. echo end,\"$nf\"\) >> mod-service/$nf
  8. done