version_info 836 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. find *.lua *.txt textures -type f | fgrep -v textures/moreblocks_version_node.png | head -24 >.filelist
  3. echo -n "" >.datelist
  4. cat .filelist | while read line ; do
  5. echo "$(date --iso=m -r ${line}) ${line}" >>.datelist
  6. done
  7. (echo "$(date --iso=m) [$(basename "$(realpath . )")]" ; cat .datelist | sed 's/ textures/ t/' | sort -r ) | anytopnm >.image
  8. WIDTH=$(head -2 .image | tail -1 | awk '{ print $1 }')
  9. HEIGHT=$(head -2 .image | tail -1 | awk '{ print $2 }')
  10. echo $WIDTH
  11. echo $HEIGHT
  12. if [ $WIDTH -gt $HEIGHT ] ; then
  13. ppmmake white 1 $((WIDTH-HEIGHT)) >.image_temp
  14. pnmcat -tb .image .image_temp >.image2
  15. fi
  16. if [ $WIDTH -lt $HEIGHT ] ; then
  17. ppmmake white $((HEIGHT-WIDTH)) 1 >.image_temp
  18. pnmcat -lr .image .image_temp >.image2
  19. fi
  20. pnmtopng .image2 >textures/moreblocks_version_node.png