Team Fortress 2 Source Code as on 22/4/2020
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.

34 lines
709 B

  1. #!/bin/bash
  2. ##############################################################
  3. #
  4. # Check to see if two MSVC dsp files differ and if they
  5. # do then print out the changes
  6. #
  7. ##############################################################
  8. cd make_check
  9. mkdir cache > /dev/null
  10. IN_DSP=../$1
  11. OUT_DSP=cache/`basename $1`.check
  12. p4 edit $OUT_DSP
  13. if [ ! -f "$OUT_DSP" ]; then
  14. cp $IN_DSP $OUT_DSP
  15. chmod +w $OUT_DSP
  16. fi
  17. IN_SUM=`md5sum $IN_DSP | cut -f1 -d" "`
  18. OUT_SUM=`md5sum $OUT_DSP| cut -f1 -d" "`
  19. if test "$IN_SUM" != "$OUT_SUM" ; then
  20. diff $IN_DSP $OUT_DSP > $OUT_DSP.diff.`date +%H:%M:%S-%d%m%y`
  21. less $OUT_DSP.diff.`date +%H:%M:%S-%d%m%y`
  22. fi
  23. cp $IN_DSP $OUT_DSP
  24. #chmod +w $OUT_DSP
  25. p4 revert -a $OUT_DSP
  26. cd ..