A script that simulates a configuration script.

An AI image.
An AI image depicting a sad robot that needs a CPU. Won't you help?

Just call this script from your Makefile:

#!/bin/bash
# Simulate an autoconf configure script.

config=(
"build system"
"libc2.0"
"python2.7"
"perl 4.3"
"config files"
"header files"
"C compiler"
"atari config"
"biomimetic alloy"
"positronic brain"
"extra savings"
"system problem"
"flagrant error"
"computer over"
)

function delay () {
	min=1
	max=3
	echo $((RANDOM % (max-min +1) + min))
 }

function choice () {
	echo $((RANDOM % 10))
 }

for line in "${config[@]}"; do
	echo -n "checking for ${line}... "
	sleep "0.$(delay)"

	if [[ $(false) ]]; then
		:;
	elif [[ "$line" == "computer over" ]]; then
		echo "very yes"
		continue
	elif [[ "$line" == "build system" ]]; then
		echo "x86_64-pc-linux-gnu"
		continue
	 fi

	b=$(choice)
	if [[ $b -ne 0 ]]; then
		echo "yes"
	 else
		echo "no"
	 fi
 done

Of course, you will have to add more config items so that you can really impress people with all of the stuff the computer is doing. Make it at least 1000 items. I know you can do it.

So I did this and people were like, Wow! You are such a good programmer, Mr. Hugh Hacker!

Comments:

😀 @charles2897 3 minutes ago.
Wow! You are such a good programmer, Mr. Hugh Hacker!

🥨@daria0750 13 minutes ago.
The best part was where the configuration script started configuring and said "It's configuration time."

😎@simon4682 33 minutes ago.
I made it do an infinite loop.Â