markLSLScripts.sh 1.1 KB

1234567891011
  1. #!/bin/sh
  2. # Commands to append a note to every LSL script under trunk with a showing where it lives in SVN.
  3. # This is intended to help us deploy from Subversion directly into an .oar file.
  4. # ...or commit code changed in an object back into Subversion without any unreliable copying-and-pasting.
  5. # We may need something slightly more sophisticated later to cope with moving things around.
  6. cd ../../moodle-mod_sloodle
  7. #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: {} \" >> {}" \;
  8. find * -name '*.lsl' -exec sh -c "if ! grep -q \"SLOODLE LSL Script Subversion Location\" {}; then echo \"\n// Please leave the following line intact to show where the script lives in Git:\n// SLOODLE LSL Script Git Location: {} \" >> {}; fi" \;
  9. find * -name '*.lslp' -exec sh -c "if ! grep -q \"SLOODLE LSL Script Subversion Location\" {}; then echo \"\n// Please leave the following line intact to show where the script lives in Git:\n// SLOODLE LSL Script Git Location: {} \" >> {}; fi" \;