check_maps.sh 671 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. cwd=$(pwd)
  3. actiondir=$cwd/../
  4. sort $actiondir/config/maplist.ini > $actiondir/config/maplist.ini.current
  5. cd $actiondir/maps
  6. ls -1 *bsp | sed s/.bsp// > $actiondir/config/maplist.bsp.current
  7. cd $actiondir/config
  8. diff maplist.bsp.current maplist.ini.current
  9. #
  10. #
  11. echo
  12. echo \< means that there is a map, which is present in your
  13. echo ./maps directory, but not yet listed in your maplist.ini
  14. echo
  15. echo \> means that there is a map listed in your maplist.ini
  16. echo but not present in your ./maps directory
  17. echo
  18. echo When nothing is shown here except the helptext, then
  19. echo your maplist.ini has exactly the maps listed, as in
  20. echo your ./maps directory
  21. echo