opensimProofLSLScripts.sh 593 B

12345678
  1. #!/bin/sh
  2. # Add markins at the top of the file to displace comments that may be there.
  3. # This stops OpenSim from mistaking them for script engine information.
  4. cd ../../moodle-mod_sloodle
  5. #find * -name '*.lsl' -exec sh -c "echo \"// Please leave the following line intact to show where the script lives in Git:\n// SLOODLE LSL Script Git Location: {} \" >> {}" \;
  6. find * -name '*.lsl' -exec sh -c "if ! grep -q \"The line above should\" {}; then mv {} {}.tmp; echo \"//\n// The line above should be left blank to avoid script errors in OpenSim.\n\" >> {}; cat {}.tmp >> {}; rm {}.tmp; fi" \;