Sha256: 981cea5a9c96a6602be1f4e1115a84f0e4816bdfa33f9e14e63082e0fef27150

Contents?: true

Size: 1.15 KB

Versions: 29

Compression:

Stored size: 1.15 KB

Contents

#!/bin/bash

cd src 2>/dev/null
cd src 2>/dev/null
cd ..

test -e ../bin/rgsub || (cp -v rgsub ../bin/rgsub || (gcc -O3 -s -Wall -Wextra -fwhole-program rgsub.c -o rgsub && cp -v rgsub ../bin/rgsub))
CPP=g++
test -e ../bin/left_right || (cp -v left_right ../bin/left_right || ($CPP -s -O3 -s -fno-rtti -Wall -Wextra -fwhole-program left_right.cc -o left_right && cp -v left_right ../bin/left_right))
CPP=/usr/lib/mxe/usr/bin/x86_64-w64-mingw32.static-g++
test -e ../bin/left_right.exe || (cp -v left_right.exe ../bin/left_right.exe || ($CPP -s -std=c++17 -O3 -s -fno-rtti -Wall -Wextra -fwhole-program left_right.cc -o left_right.exe && cp -v left_right.exe ../bin/left_right.exe && true))

echo rgsub
test -e ../bin/news || (
	cp -v news ../bin/news || crystal build news.cr --release -o ../bin/news
	strip ../bin/news
)

echo news
test -e ../bin/clock || (
	cp -v clock ../bin/clock || crystal build clock.cr --release -o ../bin/clock
	strip ../bin/clock
)
echo clock
cd src 2>/dev/null
make || exit 1
cd ..

cd programs && for i in *; do

	file=../../bin/"$i"
	(/usr/bin/test -e $file && echo ${file} Exist) || (
		echo Need a copy
		cp -v "$i" ../../bin/"$i"
	)

done

cd ..

Version data entries

29 entries across 29 versions & 6 rubygems

Version Path
ufos-1.0.94 ./src/compile_all
aliens-1.0.94 ./src/compile_all
freespeech-1.0.94 ./src/compile_all
elonmusk-1.0.94 ./src/compile_all
politics-1.0.94 ./src/compile_all
democracy-1.0.94 ./src/compile_all
democracy-1.0.93 ./src/compile_all
ufos-1.0.91 ./src/compile_all
aliens-1.0.91 ./src/compile_all
freespeech-1.0.91 ./src/compile_all
elonmusk-1.0.91 ./src/compile_all
politics-1.0.91 ./src/compile_all
politics-1.0.89 ./src/compile_all
ufos-1.0.87 ./src/compile_all
aliens-1.0.87 ./src/compile_all
freespeech-1.0.87 ./src/compile_all
elonmusk-1.0.87 ./src/compile_all
politics-1.0.87 ./src/compile_all
ufos-1.0.88 ./src/compile_all
aliens-1.0.88 ./src/compile_all