Operating system for OpenComputers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
195B

  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