Created
February 18, 2022 01:02
-
-
Save presci/65cd2464e0ca29d06bf6bbfffb2bfbbc to your computer and use it in GitHub Desktop.
Continuous build script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SHASUM="HELLO WORLD" | |
while true; do | |
FILENAME=`ls -ltrap *.hs | grep -v / | awk '{print $9}' | tail -1` | |
tmp_SHASUM=`shasum $FILENAME` | |
# echo "$tmp_SHASUM" | |
if [ "$SHASUM" != "$tmp_SHASUM" ]; then | |
# echo "Strings are not equal" | |
HASKFILE=`echo $tmp_SHASUM | awk '{print $2}'` | |
runghc "$HASKFILE" | |
SHASUM="$tmp_SHASUM" | |
fi | |
sleep 5; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment