Skip to content

Commit

Permalink
bracketing and quoting vars
Browse files Browse the repository at this point in the history
  • Loading branch information
dericed committed Apr 8, 2015
1 parent d01beff commit dd54588
Show file tree
Hide file tree
Showing 26 changed files with 135 additions and 135 deletions.
6 changes: 3 additions & 3 deletions barcodeinterpret
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
# interpret Interleaved 2/5 barcode 58 byte barcode values used by the ProBell tape management system

scriptdir=$(dirname "$0")
. "$scriptdir/mmfunctions" || { echo "Missing '$scriptdir/mmfunctions'. Exiting." ; exit 1 ;};
scriptdir=$(dirname "${0}")
. "${scriptdir}/mmfunctions" || { echo "Missing '${scriptdir}/mmfunctions'. Exiting." ; exit 1 ;};

cleanup(){
_log -a "Process aborted"
Expand All @@ -16,7 +16,7 @@ if test $# != 1 ; then
echo "You must supply one argument, a scanned interleaved 2/5 barcode value"; exit
fi

barcode="$1"
barcode="${1}"

translatebyte()
{
Expand Down
10 changes: 5 additions & 5 deletions blackatends
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
# blackatends
# Accepts one or many video files as an input and determines how many frames of black are at the beginning and at the end
scriptdir=$(dirname "$0")
. "$scriptdir/mmfunctions" || { echo "Missing '$scriptdir/mmfunctions'. Exiting." ; exit 1 ;};
scriptdir=$(dirname "${0}")
. "${scriptdir}/mmfunctions" || { echo "Missing '${scriptdir}/mmfunctions'. Exiting." ; exit 1 ;};
version=1.0

cleanup(){
Expand All @@ -14,7 +14,7 @@ trap cleanup SIGHUP SIGINT SIGTERM

usage(){
echo
echo "$(basename "$0") ${version}"
echo "$(basename "${0}") ${version}"
echo "This program will report on the number of black frames at the beginning and end of a video file."
echo
echo "Usage: $(basename $0) file1 [ file2 ... ]"
Expand All @@ -37,9 +37,9 @@ while getopts ":h" opt; do
done
shift $(( ${OPTIND} - 1 ))

while [ "$*" != "" ] ; do
while [ "${*}" != "" ] ; do
_log -b
[ "$#" != 0 ] && sourcefile="$1"
[ "$#" != 0 ] && sourcefile="${1}"
black_at_ends "$sourcefile"
_log -e
shift
Expand Down
4 changes: 2 additions & 2 deletions checksum2filemaker
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SCRIPTDIR=$(dirname "${0}")
[ -z "${FILEMAKER_XML_URL}" ] && { echo "The filemaker xml path must be set. Run mmconfig to set FILEMAKER_XML_URL." ; exit 1 ;};

while [ "${*}" != "" ] ; do
input="$1"
input="${1}"
if [[ ! -f "${input}/metadata/checksum.md5" ]] ; then
report -dt "${input} does not have a checksum.md5 file, skipping for $(basename "$input")"
shift
Expand All @@ -27,6 +27,6 @@ while [ "${*}" != "" ] ; do
fi
done
IFS=$OLDIFS
echo "Done uploading metadata for $(basename "$1")."
echo "Done uploading metadata for $(basename "${1}")."
shift
done
20 changes: 10 additions & 10 deletions checksumpackage
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ CHECKSUMPROCESSLOG="checksumchecks.log"

usage(){
echo
echo "$(basename ${0}) ${version}"
echo "$(basename "${0}") ${version}"
echo "This application will create a checksum from a directory or package input with the following options. Actions and results will be logged to ${CHECKSUMPROCESSLOG}."
echo "Dependencies: ${dependencies[@]}"
echo "Usage: $(basename ${0}) directoryorpackage1 [ directoryorpackage2 ...]"
echo "Usage: $(basename "${0}") directoryorpackage1 [ directoryorpackage2 ...]"
echo " -c ( check filenames and filesizes in objects directory are the same as in existing checksum files, if none exists it will make the initial ones )"
echo " -u ( valid only if -c is used. If the check is unsuccessful then make new checksums and version the previous ones. )"
echo " -v ( fully verify checksum files against checksum files, if none exists it will make the initial ones. Note verification will version existing checksums and make new ones and log the difference to ${CHECKSUMPROCESSLOG})"
Expand Down Expand Up @@ -80,12 +80,12 @@ _check_dfxml(){
if [[ $(diff "${DFXML_FILELIST}" "${NEW_FILELIST}") ]] ; then
report -wt "filepaths and sizes are different for ${1}"
diff "${DFXML_FILELIST}" "${NEW_FILELIST}"
echo "$(get_iso8601): $(basename ${0}):${version}: failed to verify by filepath and size" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
echo "$(get_iso8601): $(basename "${0}"):${version}: failed to verify by filepath and size" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
rm "${DFXML_FILELIST}" "${NEW_FILELIST}"
checkerr=0
else
report -dt "filepaths and sizes are still valid for ${1}"
echo "$(get_iso8601): $(basename ${0}):${version}: verified by filepath and size" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
echo "$(get_iso8601): $(basename "${0}"):${version}: verified by filepath and size" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
rm "${DFXML_FILELIST}" "${NEW_FILELIST}"
checkerr=1
fi
Expand All @@ -98,8 +98,8 @@ _version_dfxml(){
LASTDFXML="${PACKAGE}/${OUTDIR}/${DFXMLNAME%.*}_$(stat -t '%Y%m%d-%H%M%S' -l "${PACKAGE}/${OUTDIR}/${DFXMLNAME}" | awk '{print $6}').xml"
mv -v "${PACKAGE}/${OUTDIR}/${CHECKSUMNAME}" "${LASTMD5}"
mv -v "${PACKAGE}/${OUTDIR}/${DFXMLNAME}" "${LASTDFXML}"
echo "$(get_iso8601): $(basename ${0}):${version}: checksums are versioned - ${DFXMLNAME} -> ${LASTDFXML}" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
echo "$(get_iso8601): $(basename ${0}):${version}: checksums are versioned - ${CHECKSUMNAME} -> ${LASTMD5}" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
echo "$(get_iso8601): $(basename "${0}"):${version}: checksums are versioned - ${DFXMLNAME} -> ${LASTDFXML}" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
echo "$(get_iso8601): $(basename "${0}"):${version}: checksums are versioned - ${CHECKSUMNAME} -> ${LASTMD5}" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
}

while [ "${*}" != "" ] ; do
Expand Down Expand Up @@ -155,14 +155,14 @@ while [ "${*}" != "" ] ; do
DFXMLTMP=$(maketemp)
md5deep -drl . > $DFXMLTMP
[ ! -d "${PACKAGE}/${OUTDIR}" ] && mkdir -p "${PACKAGE}/${OUTDIR}"
echo "$(get_iso8601): $(basename ${0}):${version}: ${DFXMLNAME} is generated" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
echo "$(get_iso8601): $(basename "${0}"):${version}: ${DFXMLNAME} is generated" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
mv "${DFXMLTMP}" "${PACKAGE}/${OUTDIR}/${DFXMLNAME}"
if [ ! -z "$(xml sel -T -t -m "/_:dfxml/_:fileobject" -v "_:filename" -o " " -v "_:filesize" -n "${PACKAGE}/${OUTDIR}/${DFXMLNAME}" 2>/dev/null)" ] ; then
xml sel -T -t -m "/_:dfxml/_:fileobject" -v "_:hashdigest" -o " " -v "_:filename" -n "${PACKAGE}/${OUTDIR}/${DFXMLNAME}" > "${PACKAGE}/${OUTDIR}/${CHECKSUMNAME}"
else
xml sel -T -t -m "/dfxml/fileobject" -v "hashdigest" -o " " -v "filename" -n "${PACKAGE}/${OUTDIR}/${DFXMLNAME}" > "${PACKAGE}/${OUTDIR}/${CHECKSUMNAME}"
fi
echo "$(get_iso8601): $(basename ${0}):${version}: ${CHECKSUMNAME} is generated" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
echo "$(get_iso8601): $(basename "${0}"):${version}: ${CHECKSUMNAME} is generated" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
cd "${PWD}"
if [ "${verify}" = "Y" ] ; then
CHECKSUMCMP1=$(maketemp)
Expand All @@ -172,10 +172,10 @@ while [ "${*}" != "" ] ; do
if [[ $(diff "${CHECKSUMCMP1}" "${CHECKSUMCMP2}") ]] ; then
report -wt "checksums are different for ${PACKAGE}"
diff "${CHECKSUMCMP1}" "${CHECKSUMCMP2}"
echo "$(get_iso8601): $(basename ${0}):${version}: FAILED to VERIFY by checksums - compare ${CHECKSUMNAME} and $(basename "${LASTMD5}")" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
echo "$(get_iso8601): $(basename "${0}"):${version}: FAILED to VERIFY by checksums - compare ${CHECKSUMNAME} and $(basename "${LASTMD5}")" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
else
report -dt "checksums are still valid for ${PACKAGE}"
echo "$(get_iso8601): $(basename ${0}):${version}: verified by checksums" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
echo "$(get_iso8601): $(basename "${0}"):${version}: verified by checksums" >> "${PACKAGE}/${OUTDIR}/${CHECKSUMPROCESSLOG}"
fi
rm "${CHECKSUMCMP1}" "${CHECKSUMCMP2}"
fi
Expand Down
2 changes: 1 addition & 1 deletion finishpackage
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
while [ "${*}" != "" ] ; do
input="$1"
input="${1}"
makelossless "${input}" && makebroadcast "${input}" && makeyoutube "${input}" && makemetadata "${input}" && checksumpackage "${input}"
shift
done
16 changes: 8 additions & 8 deletions ingestfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ scriptdir=$(dirname "${0}")

usage(){
echo
echo "$(basename ${0}) ${version}"
echo "$(basename "${0}") ${version}"
echo "This script will run an interactive interview and then process an input file accordingly."
echo "Dependencies: ${dependencies[@]}"
echo "Usage: $(basename $0) [ -options ]"
Expand Down Expand Up @@ -241,27 +241,27 @@ if [ "${makeaccesscopies}" == "Y" ] ; then
unset makepodcastopts
report -dt "STATUS Making access copies."
# makemp3
"$scriptdir/makemp3" "${OUTDIR_INGESTFILE}/${mediaid}"
"${scriptdir}/makemp3" "${OUTDIR_INGESTFILE}/${mediaid}"
# makeframes
[ "$deliveraccesscopies" = "Y" ] && makeframesopts=(-d "$YOUTUBEDELIVER")
"$scriptdir/makeframes" "${makeframesopts[@]}" "$OUTDIR_INGESTFILE/$mediaid"
"${scriptdir}/makeframes" "${makeframesopts[@]}" "$OUTDIR_INGESTFILE/$mediaid"
# makeyoutube
[ "$deliveraccesscopies" = "Y" ] && makeyoutubeopts=(-d "$YOUTUBEDELIVER")
"$scriptdir/makeyoutube" "${makeyoutubeopts[@]}" "$OUTDIR_INGESTFILE/$mediaid"
"${scriptdir}/makeyoutube" "${makeyoutubeopts[@]}" "$OUTDIR_INGESTFILE/$mediaid"
# makepodcast
if [ $(echo "$mediaid" | grep -E "${REGEX4PODCAST}") ] ; then
report -dt "${mediaid} qualifies for podcast creation."
[ "$deliveraccesscopies" == "Y" ] && makepodcastopts=(-d "$PODCASTDELIVER")
"$scriptdir/makepodcast" "${makepodcastopts[@]}" "$OUTDIR_INGESTFILE/$mediaid"
"${scriptdir}/makepodcast" "${makepodcastopts[@]}" "$OUTDIR_INGESTFILE/$mediaid"
else
report -dt "${mediaid} does NOT qualify for podcast creation, skipping."
fi
# makedvd
"$scriptdir/makedvd" "${OUTDIR_INGESTFILE}/${mediaid}"
"${scriptdir}/makedvd" "${OUTDIR_INGESTFILE}/${mediaid}"
# makemetadata
"$scriptdir/makemetadata" "$OUTDIR_INGESTFILE/$mediaid"
"${scriptdir}/makemetadata" "$OUTDIR_INGESTFILE/$mediaid"
if [ "$dochecksums" = "Y" ] ; then
"$scriptdir/checksumpackage" "$OUTDIR_INGESTFILE/$mediaid"
"${scriptdir}/checksumpackage" "$OUTDIR_INGESTFILE/$mediaid"
fi
fi
_writeingestlog "datetime_end" "$(get_iso8601)"
Expand Down
10 changes: 5 additions & 5 deletions makebroadcast
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
# v 1.2 revert to mov and ffmbc
# v 1.3 revert back to ffmpeg
version="1.3"
scriptdir=$(dirname $(which "$0"))
. "$scriptdir/mmfunctions" || { echo "Missing '$scriptdir/mmfunctions'. Exiting." ; exit 1 ;};
scriptdir=$(dirname $(which "${0}"))
. "${scriptdir}/mmfunctions" || { echo "Missing '${scriptdir}/mmfunctions'. Exiting." ; exit 1 ;};
dependencies=(ffmpeg ffprobe)
_initialize_make

usage(){
echo
echo "$(basename ${0}) ${version}"
echo "$(basename "${0}") ${version}"
echo "This application will create a file suitable for broadcast or editing from a video file or package input with the following options."
echo "Dependencies: ${dependencies[@]}"
echo "Usage: $(basename ${0}) [ -l ] [ -r ] [ -c ] fileorpackage1 [ fileorpackage2 ...]"
echo "Usage: $(basename "${0}") [ -l ] [ -r ] [ -c ] fileorpackage1 [ fileorpackage2 ...]"
echo " -F (apply a formula, override default settings)"
echo " -l (only use the left channel of the first audio track)"
echo " -r (only use the right channel of the first audio track)"
Expand Down Expand Up @@ -54,7 +54,7 @@ shift $(( ${OPTIND} - 1 ))

while [ "${*}" != "" ] ; do
# get context about the input
input="$1"
input="${1}"
if [ -z "${outputdir_forced}" ] ; then
[ -d "${input}" ] && { outputdir="${input}/objects/service" && logdir="${input}/metadata/submissionDocumentation/logs" ;};
[ -f "${input}" ] && { outputdir=$(dirname "${input}")"/service" && logdir="$(dirname "${input}")/service/logs" ;};
Expand Down
8 changes: 4 additions & 4 deletions makedvd
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash
# makedvd
version="1.0"
scriptdir=$(dirname $(which "$0"))
. "$scriptdir/mmfunctions" || { echo "Missing '$scriptdir/mmfunctions'. Exiting." ; exit 1 ;};
scriptdir=$(dirname $(which "${0}"))
. "${scriptdir}/mmfunctions" || { echo "Missing '${scriptdir}/mmfunctions'. Exiting." ; exit 1 ;};
dependencies=(ffmpeg dvdauthor mkisofs)
_initialize_make

usage(){
echo
echo "$(basename ${0}) ${version}"
echo "$(basename "${0}") ${version}"
echo "This application will create a DVD .iso file from a video file or package input with the following options."
echo "Dependencies: ${dependencies[@]}"
echo "Usage: $(basename $0) [ -v dvd_label_prefix ] fileorpackage1 [ fileorpackage2 ...]"
Expand Down Expand Up @@ -48,7 +48,7 @@ shift $(( ${OPTIND} - 1 ))

while [ "${*}" != "" ] ; do
# get context about the input
input="$1"
input="${1}"
if [ -z "${outputdir_forced}" ] ; then
[ -d "${input}" ] && { outputdir="${input}/objects/access/dvd" && logdir="${input}/metadata/submissionDocumentation/logs" ;};
[ -f "${input}" ] && { outputdir=$(dirname "${input}")"/access/dvd" && logdir="$(dirname "${input}")/access/logs" ;};
Expand Down
12 changes: 6 additions & 6 deletions makeframes
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
# makeframes
version="1.0"
scriptdir=$(dirname $(which "$0"))
. "$scriptdir/mmfunctions" || { echo "Missing '$scriptdir/mmfunctions'. Exiting." ; exit 1 ;};
scriptdir=$(dirname $(which "${0}"))
. "${scriptdir}/mmfunctions" || { echo "Missing '${scriptdir}/mmfunctions'. Exiting." ; exit 1 ;};
dependencies=(ffmpeg)
_initialize_make

Expand All @@ -11,7 +11,7 @@ IMAGECOUNT=10

usage(){
echo
echo "$(basename ${0}) ${version}"
echo "$(basename "${0}") ${version}"
echo "This application will create a series of still images from a video file or package input with the following options."
echo "Dependencies: ${dependencies[@]}"
echo "Usage: $(basename $0) [ -d /path/to/deliver/to/ ] fileorpackage1 [ fileorpackage2 ...]"
Expand All @@ -38,14 +38,14 @@ while getopts ":d:e:E:nh" opt ; do
done
shift $(( ${OPTIND} - 1 ))

while [ "$*" != "" ] ; do
input="$1"
while [ "${*}" != "" ] ; do
input="${1}"
[ -d "$input" ] && { outputdir="$input/objects/access/images" && logdir="$input/metadata/submissionDocumentation/logs" ;};
[ -f "$input" ] && { outputdir=$(dirname "$input")"/access/images" && logdir="$(dirname "$input")/access/logs" ;};
[ ! "$outputdir" ] && { outputdir="$input/objects/access/images" && logdir="$input/metadata/submissionDocumentation/logs" ;};
_find_input "$input"

mediaid=$(basename "$1" | cut -d. -f1)
mediaid=$(basename "${1}" | cut -d. -f1)

# clear local arrays
unset inputoptions
Expand Down
8 changes: 4 additions & 4 deletions makelossless
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash
# makelossless
version="1.0"
scriptdir=$(dirname $(which "$0"))
. "$scriptdir/mmfunctions" || { echo "Missing '$scriptdir/mmfunctions'. Exiting." ; exit 1 ;};
scriptdir=$(dirname $(which "${0}"))
. "${scriptdir}/mmfunctions" || { echo "Missing '${scriptdir}/mmfunctions'. Exiting." ; exit 1 ;};
dependencies=(ffmpeg mediainfo)
_initialize_make

usage(){
echo
echo "$(basename ${0}) ${version}"
echo "$(basename "${0}") ${version}"
echo "This application will losslessly transcode a video file or package input with the following options."
echo "Dependencies: ${dependencies[@]}"
echo "Usage: $(basename $0) fileorpackage1 [ fileorpackage2 ...]"
Expand All @@ -35,7 +35,7 @@ shift $(( ${OPTIND} - 1 ))

while [ "${*}" != "" ] ; do
# get context about the input
input="$1"
input="${1}"
[ -d "${input}" ] && logdir="${input}/metadata/submissionDocumentation/logs"
[ -f "${input}" ] && logdir="$(dirname "${input}")/lossless/logs"
[ ! "${logdir}" ] && logdir="${input}/metadata/submissionDocumentation/logs"
Expand Down
4 changes: 2 additions & 2 deletions makemetadata
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ _initialize_make

usage(){
echo
echo "$(basename ${0}) ${version}"
echo "$(basename "${0}") ${version}"
echo "Produces a set of metadata reports for an archival information package on all files in the objects subdirectory."
echo "Usage: $(basename ${0}) [ -h ] package1 [ package2 ... ]"
echo "Usage: $(basename "${0}") [ -h ] package1 [ package2 ... ]"
echo " -h (show usage)"
exit
}
Expand Down
4 changes: 2 additions & 2 deletions makemp3
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ while getopts ":ho:" opt; do
done
shift $(( ${OPTIND} - 1 ))

while [ "$*" != "" ] ; do
input="$1"
while [ "${*}" != "" ] ; do
input="${1}"
if [ -z "${outputdir}" ] ; then
[ -d "${input}" ] && { outputdir="${input}/objects/access/mp3" && logdir="${input}/metadata/submissionDocumentation/logs" ;};
[ -f "${input}" ] && { outputdir=$(dirname "${input}")"/access/mp3" && logdir="$(dirname "${input}")/access/logs" ;};
Expand Down
8 changes: 4 additions & 4 deletions makepdf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
# makepdf, makes a pdf from an image series
version="1.0"
scriptdir=$(dirname $(which "$0"))
. "$scriptdir/mmfunctions" || { echo "Missing '$scriptdir/mmfunctions'. Exiting." ; exit 1 ;};
scriptdir=$(dirname $(which "${0}"))
. "${scriptdir}/mmfunctions" || { echo "Missing '${scriptdir}/mmfunctions'. Exiting." ; exit 1 ;};
dependencies=(ffmpeg convert pdfjoin tesseract)
_initialize_make

Expand Down Expand Up @@ -37,7 +37,7 @@ check_tif_name(){

usage(){
echo
echo "$(basename ${0}) ${version}"
echo "$(basename "${0}") ${version}"
echo "This application will create a small pdf file (suitable for sharing online) from a collection of image file or package input with the following options."
echo "Dependencies: ${dependencies[@]}"
echo "Usage: $(basename $0) [ -d /path/to/deliver/to/ ] fileorpackage1 [ fileorpackage2 ...]"
Expand Down Expand Up @@ -73,7 +73,7 @@ shift $(( ${OPTIND} - 1 ))

while [ "${*}" != "" ] ; do
# get context about the input
input="$1"
input="${1}"
if [ -z "${outputdir_forced}" ] ; then
[ -d "${input}" ] && { outputdir="${input}/objects/access/pdf_1" && logdir="${input}/metadata/submissionDocumentation/logs" ;};
[ -f "${input}" ] && { outputdir=$(dirname "${input}")"/access/pdf_1" && logdir="$(dirname "${input}")/access/logs" ;};
Expand Down
8 changes: 4 additions & 4 deletions makepodcast
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash
# makepodcast, makes a file appropriate for podcasting
version="1.0"
scriptdir=$(dirname $(which "$0"))
. "$scriptdir/mmfunctions" || { echo "Missing '$scriptdir/mmfunctions'. Exiting." ; exit 1 ;};
scriptdir=$(dirname $(which "${0}"))
. "${scriptdir}/mmfunctions" || { echo "Missing '${scriptdir}/mmfunctions'. Exiting." ; exit 1 ;};
dependencies=(ffmpeg)
_initialize_make

usage(){
echo
echo "$(basename ${0}) ${version}"
echo "$(basename "${0}") ${version}"
echo "This application will create a QuickTime file suitable for podcasting from a video file or package input with the following options."
echo "Dependencies: ${dependencies[@]}"
echo "Usage: $(basename $0) [ -d /path/to/deliver/to/ ] fileorpackage1 [ fileorpackage2 ...]"
Expand Down Expand Up @@ -41,7 +41,7 @@ shift $(( ${OPTIND} - 1 ))

while [ "${*}" != "" ] ; do
# get context about the input
input="$1"
input="${1}"
if [ -z "${outputdir_forced}" ] ; then
[ -d "${input}" ] && { outputdir="$input/objects/access/podcast" && logdir="${input}/metadata/submissionDocumentation/logs" ;};
[ -f "${input}" ] && { outputdir=$(dirname "${input}")"/access/podcast" && logdir="$(dirname "${input}")/access/logs" ;};
Expand Down
Loading

0 comments on commit dd54588

Please sign in to comment.