Sha256: c32031330f991b65e4d7348c541890cfde90bd080f87cbc6c28e1691cae9ee31

Contents?: true

Size: 1.19 KB

Versions: 9

Compression:

Stored size: 1.19 KB

Contents

#!/bin/bash

cd src 2>/dev/null
cd src 2>/dev/null
make || exit 1
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 && strip ../bin/rgsub))
CPP=g++
test -e ../bin/left_right || (cp -v left_right ../bin/left_right || ($CPP -O3 -s -fno-rtti -Wall -Wextra -fwhole-program left_right.cc -o left_right && cp -v left_right ../bin/left_right && strip ../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 -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 && strip ../bin/left_right.exe))

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 programs

for i in *; do

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

done

cd ..

Version data entries

9 entries across 9 versions & 5 rubygems

Version Path
politics-1.0.81 ./src/compile_all
ufos-1.0.79 ./src/compile_all
aliens-1.0.79 ./src/compile_all
freespeech-1.0.79 ./src/compile_all
elonmusk-1.0.79 ./src/compile_all
elonmusk-1.0.77 ./src/compile_all
ufos-1.0.77 ./src/compile_all
aliens-1.0.77 ./src/compile_all
freespeech-1.0.77 ./src/compile_all