build.sh 191 B

1234567
  1. #!/bin/sh
  2. newest_file="$(find ./ -type f -printf "%T@ %p\n" | sort -n | cut -d' ' -f 2- | tail -n 1)"
  3. set -x
  4. g++ -O0 -ggdb -Wall -Wextra -Werror $newest_file -o /tmp/out || exit 1
  5. /tmp/out