#!/bin/bash
abspath="/home/david/Dokumente/Dokumente-16-2024-08-16/informatikUmathematik/vhdl20250304"
relpath="$1"
texname="latex20250305.tex"
cd "$1"
l=$(ls)
for s in $l
do
if [ "$s" == "$texname" ]
then
echo ""
elif [ -f "$s" ]
then
fext=$(echo "$s" | "$abspath/sed.sh" "$s")
if [[ "$fext" == "sql" || "$fext" == "gif" || "$fext" == "pdf" || "$fext" == "odg" || "$fext" == "xsch" || "$fext" == "mov" ]]
then
echo ""
elif [[ "$fext" == "jpeg" || "$fext" == "jpg" || "$fext" == "png" ]]
then
echo "\\section{$s}"
echo "\\includegraphics [width=\\textwidth]{$1/$s}"
else
echo "\\section{$s}"
echo ""
echo "\\begin{lstlisting}"
cat "$s"
echo "\\end{lstlisting}"
echo ""
fi
elif [ -d "$s" ]
then
/bin/bash "$abspath/$0" "$s"
cd ..
fi
done
|