2019-07-11 01:48:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
build=./build
|
|
|
|
color_schemes=./color-schemes
|
|
|
|
|
2019-07-11 01:57:16 +00:00
|
|
|
if [ ! -d $build ]; then
|
|
|
|
mkdir $build
|
|
|
|
fi
|
|
|
|
|
2019-07-11 01:48:58 +00:00
|
|
|
for i in $color_schemes/*;
|
|
|
|
do
|
|
|
|
for f in $i/*;
|
|
|
|
do
|
2019-07-11 16:48:59 +00:00
|
|
|
if [ -d $f ]; then
|
|
|
|
(name=$(basename $f)-$(basename $(dirname $f))
|
2019-07-11 01:48:58 +00:00
|
|
|
|
2019-07-11 01:57:16 +00:00
|
|
|
if [ ! -d $build/$name ]; then
|
|
|
|
mkdir $build/$name
|
|
|
|
fi
|
|
|
|
|
2019-07-11 16:48:59 +00:00
|
|
|
if [ ! -d $build/$name/screenshots ]; then
|
|
|
|
mkdir $build/$name/screenshots
|
|
|
|
fi
|
|
|
|
|
2019-07-11 01:48:58 +00:00
|
|
|
cp $f/background.png $build/$name &&
|
|
|
|
cp $f/box.png $build/$name &&
|
|
|
|
cp $f/bullet.png $build/$name &&
|
|
|
|
cp $f/entry.png $build/$name &&
|
|
|
|
cp $f/lock.png $build/$name &&
|
|
|
|
cp $f/logo.png $build/$name &&
|
|
|
|
cp $f/progress-bar.png $build/$name &&
|
|
|
|
cp $f/progress-box.png $build/$name &&
|
|
|
|
sed "s/::NAME::/$name/g" plymouth > $build/$name/$name.plymouth &&
|
2019-07-11 16:48:59 +00:00
|
|
|
cat script > $build/$name/$name.script &&
|
|
|
|
|
|
|
|
python3 -B ./create-screenshots.py --path=$build/$name) || exit 1
|
|
|
|
fi
|
2019-07-11 01:48:58 +00:00
|
|
|
done;
|
|
|
|
done;
|
|
|
|
|
|
|
|
echo "Done!"
|