~kameliya/piret

ref: 1f7f0673d7dd05a316e0d9dcef634bbb3f46fdff piret/strap -rwxr-xr-x 474 bytes
1f7f0673 — Arlen Christian Mart Cuss SUCCESSFUL BOOTSTRAP 8 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
ruby piretc.rb piretc.pi > boot1.c
gcc -std=gnu99 boot1.c -g -o boot1 || (echo 'failed boot1'; exit 1) || exit 1
./boot1 piretc.pi > boot2.c
gcc -std=gnu99 boot2.c -g -o boot2 || (echo 'failed boot2'; exit 1) || exit 1
./boot2 piretc.pi > boot3.c
gcc -std=gnu99 boot3.c -g -o boot3 || (echo 'failed boot3'; exit 1) || exit 1
if [ x"`diff boot2.c boot3.c`" != x ]; then
	echo "boot2.c and boot3.c differ (failure)"
else
	echo "boot2.c and boot3.c are identical (success)"
fi