2018-12-30 11:41:38 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2018-12-30 14:40:04 +00:00
|
|
|
echo "Setting Attributes for script"
|
2018-12-30 11:41:38 +00:00
|
|
|
chmod +x apps/pong.py
|
|
|
|
chmod +x apps/strobo.py
|
2018-12-30 13:34:18 +00:00
|
|
|
chmod +x apps/example.py
|
2018-12-30 11:41:38 +00:00
|
|
|
chmod +x apps/youtubedl.sh
|
2019-01-01 11:20:54 +00:00
|
|
|
chmod +x apps/lines.py
|
2018-12-30 11:41:38 +00:00
|
|
|
|
|
|
|
|
2018-12-30 14:40:04 +00:00
|
|
|
echo "Building c/c++ apps"
|
2018-12-30 11:41:38 +00:00
|
|
|
mkdir -p build/c
|
|
|
|
pushd build/c
|
|
|
|
cmake ../../apps/c-src
|
|
|
|
make
|
|
|
|
popd
|
2018-12-30 14:40:04 +00:00
|
|
|
mv -f build/c/fbcp apps/
|
|
|
|
mv -f build/c/flicker apps/
|
|
|
|
mv -f build/c/pixelflut apps/
|
|
|
|
|
|
|
|
if hash cargo 2>/dev/null; then
|
|
|
|
echo "Building juergen/pixelfoo"
|
|
|
|
# get juergens apps
|
|
|
|
mkdir -p external
|
|
|
|
pushd external
|
|
|
|
if [ ! -d "pixelfoo" ]; then
|
|
|
|
git clone https://git.chaospott.de/juergen/pixelfoo.git
|
|
|
|
fi
|
|
|
|
pushd pixelfoo
|
|
|
|
git pull
|
|
|
|
cargo build --release
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
cp -f external/pixelfoo/target/release/cnoise apps/
|
|
|
|
cp -f external/pixelfoo/target/release/bimood apps/
|
|
|
|
cp -f external/pixelfoo/target/release/predprey apps/
|
|
|
|
cp -f external/pixelfoo/target/release/maze apps/
|
|
|
|
cp -f external/pixelfoo/target/release/dualmaze apps/
|
|
|
|
fi
|
|
|
|
|
2024-10-28 17:10:03 +00:00
|
|
|
#echo "Getting mathpixel"
|
|
|
|
#mkdir -p external
|
|
|
|
#pushd external
|
|
|
|
#if [ ! -d "mathpixel" ]; then
|
|
|
|
# git clone https://git.chaospott.de/andreas/mathpixel.git
|
|
|
|
#fi
|
|
|
|
#pushd mathpixel
|
|
|
|
#git pull
|
|
|
|
#bash setup.sh
|
|
|
|
#popd
|
|
|
|
#popd
|
2019-01-01 11:20:54 +00:00
|
|
|
|
2019-01-01 16:19:50 +00:00
|
|
|
echo "Getting pixelthud"
|
|
|
|
mkdir -p external
|
|
|
|
pushd external
|
|
|
|
if [ ! -d "pixelthud" ]; then
|
|
|
|
git clone https://git.chaospott.de/m11/pixelthud.git
|
|
|
|
fi
|
|
|
|
pushd pixelthud
|
|
|
|
git pull
|
|
|
|
bash setup.sh
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
2018-12-31 22:10:43 +00:00
|
|
|
echo "Setup done"
|