\begin{lstlisting}[numbers=none]
#!/bin/bash
out="$1"
-dir=`dirname "$out"`
+dir=$(dirname "$out")
shift
-geom=`jpegtopnm "$1" | head -2 | tail -1`
-w=`(set - $geom; echo $1)`
-h=`(set - $geom; echo $2)`
+geom=$(jpegtopnm "$1" | head -2 | tail -1)
+w="$(echo $geom | cut -d " " -f1)"
+h="$(echo $geom | cut -d " " -f2)"
exec > $out
echo "JPEGLIST"
echo "# First line is always JPEGLIST"
echo "$h"
echo "# List of image files follows"
while [ $# -gt 0 ]; do
- if [ x`dirname "$1"` = x"$dir" ]; then
+ if [ x$(dirname "$1") = x"$dir" ]; then
f=./`basename "$1"`;
else
f="$1";
shift
done
\end{lstlisting}
+To use this script, you will have to install the package on your operating system that
+includes \textit{jpegtopnm} which is ususally \textit{netpbm}.
Example usage of this script follows:
\qquad \texttt{jpeglist.sh outfile infiles*.jpg}
-\section{Webm\,/\,Vp9 Usage and Example File}
+\section{Webm\,/\,Vp9 Usage and Example File\protect\footnote{credit Frederic Roenitz}}%
\label{sec:webm/vp9_usage_example}
-% FIXME No footnotes with expressions of thanks in the title.
-% \protect\footnote{credit Frederic Roenitz}}
\textsc{VP9} is a video codec licensed under the BSD license and is
considered open source,
\item [.png] thumbnails of files in Resources so they do not have to be created over and over
\end{labeling}
-
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "../CinelerraGG_Manual"