refactoring the build system
This commit is contained in:
111
tools/linkfarmer.sh
Executable file
111
tools/linkfarmer.sh
Executable file
@@ -0,0 +1,111 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e ; set -u
|
||||
|
||||
IDX=0
|
||||
SPOOL="frames/Spool"
|
||||
SEQNAME="none"
|
||||
TMP="WS/tmp.png"
|
||||
|
||||
source tools/fonctions.sh
|
||||
|
||||
# -------------------------------------------------------
|
||||
# /!\ this function just copy the
|
||||
# file to the spool dir, so
|
||||
# you can use it for tmp pics.
|
||||
#
|
||||
addfile ()
|
||||
{
|
||||
src="$1"
|
||||
dstname=$(printf "%s/%05d.png" $SPOOL $IDX)
|
||||
# echo "$src -> $dstname"
|
||||
# ln --force --symbolic $src $dstname
|
||||
cp -f $src $dstname
|
||||
IDX=$(( IDX + 1 ))
|
||||
}
|
||||
# -------------------------------------------------------
|
||||
linkfarm ()
|
||||
{
|
||||
SRC="frames/$1"
|
||||
echo "linkfarm $SRC" | tee -a WS/log
|
||||
|
||||
local NBRE=30
|
||||
for foo in $(seq 0 $NBRE)
|
||||
do
|
||||
addfile "$SRC/00000.png"
|
||||
done
|
||||
|
||||
for src in "$SRC"/*
|
||||
do
|
||||
addfile $src
|
||||
done
|
||||
|
||||
for foo in $(seq 0 $NBRE)
|
||||
do
|
||||
addfile "$SRC/00359.png"
|
||||
done
|
||||
sync
|
||||
}
|
||||
# -------------------------------------------------------
|
||||
faire_le_titre ()
|
||||
{
|
||||
echo "faire le titre"
|
||||
|
||||
local NBRE=190
|
||||
for foo in $(seq 0 $NBRE)
|
||||
do
|
||||
Ypos=$(( 500 - ( foo / 2 ) ))
|
||||
convert "WS/negatif.png" \
|
||||
-gravity north \
|
||||
-font Courier-Bold \
|
||||
-pointsize 96 \
|
||||
-fill white \
|
||||
-annotate +0+${Ypos} "HexaCone(s)" \
|
||||
${TMP}
|
||||
# identify ${TMP}
|
||||
addfile ${TMP}
|
||||
done
|
||||
}
|
||||
# -------------------------------------------------------
|
||||
faire_la_fin ()
|
||||
{
|
||||
local NBRE=120
|
||||
for foo in $(seq 0 $NBRE)
|
||||
do
|
||||
Ypos=$(( foo + 100 ))
|
||||
convert "WS/negatif.png" \
|
||||
-gravity north \
|
||||
-font Courier-Bold \
|
||||
-pointsize 48 \
|
||||
-fill white \
|
||||
-strokewidth 2 -stroke gray30 \
|
||||
-annotate +0+${Ypos} \
|
||||
"tTh des Bourtoulots\n2025" \
|
||||
${TMP}
|
||||
# identify ${TMP}
|
||||
addfile ${TMP}
|
||||
done
|
||||
}
|
||||
# -------------------------------------------------------
|
||||
|
||||
rm frames/Spool/*.png
|
||||
|
||||
tools/plot-timing.sh
|
||||
faire_le_titre
|
||||
|
||||
linkfarm hexabenz
|
||||
linkfarm orbite
|
||||
linkfarm topview
|
||||
linkfarm passage
|
||||
linkfarm scene
|
||||
linkfarm essai
|
||||
|
||||
tools/plot-timing.sh
|
||||
faire_la_fin
|
||||
|
||||
ff_encodage Spool full.mp4
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user