The alt code provided by the author back in 2020 uses Unicode but there wasn't a script for it (the script run_clock.sh which I made some fixes in last year was added by the judges but no version for the alt code was added). The scripts also have another fix in them: make clock or make clock.alt first as if not and the program does not exist the script will happily overwrite the C files and prevent it from being compiled. They use 'make -B' just to be sure that it's compiled.
10 lines
174 B
Bash
Executable File
10 lines
174 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
make -B clock || exit 1
|
|
while true; do
|
|
cc -std=c11 -Wall -Wextra -pedantic -O3 clock.c -o clock
|
|
clear
|
|
./clock | tee clock.c
|
|
sleep 5
|
|
done
|