Skip to content

Commit

Permalink
Added blank line at end of scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Database committed Apr 8, 2013
1 parent b22eff5 commit d5e38a1
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion barcodeinterpret
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ if [[ $(echo "$materialid" | tail -c +9 | head -c 1) == "H" ]] ; then
materialid="${materialid}D"
fi
echo deviceid,$(echo $ids | cut -d ' ' -f 1),materialid,$materialid,som,`addcolons $(echo $barcode | cut -c 42-49)`,duration,`addcolons $(echo $barcode | cut -c 50-57)`
log -e
log -e
2 changes: 1 addition & 1 deletion blackatends
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ while [ "$*" != "" -o "$once" = "y" ] ; do
black_at_ends "$sourcefile"
shift
done
log -e
log -e
2 changes: 1 addition & 1 deletion checksumpackage
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ while [ "$*" != "" ] ; do
fi
shift
done
log -e
log -e
2 changes: 1 addition & 1 deletion fix_left2stereo
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ while [ "$*" != "" ] ; do
fi
shift
done
log -e
log -e
2 changes: 1 addition & 1 deletion fix_rewrap
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ while [ "$*" != "" ] ; do
fi
shift
done
log -e
log -e
2 changes: 1 addition & 1 deletion fix_volume
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ while [ "$*" != "" ] ; do
fi
shift
done
log -e
log -e
2 changes: 1 addition & 1 deletion ingestfile
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,4 @@ if [ "$priority" == "put in queue" ] ; then
mv /tmp/queue2.txt /tmp/queue.txt
fi
done
log -e
log -e
2 changes: 1 addition & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ pwd = File.expand_path File.join(__FILE__, "..")

%w[barcodeinterpret blackatends checksumpackage fix_left2stereo fix_rewrap fix_volume mmfunctions mmhelp ingestfile makebroadcast makedvd makemetadata makepodcast makeyoutube quickcompare removeDSStore xdcamingest].each do |file|
system command+'"'+pwd+'/'+file+'"'+" /usr/local/bin"
end
end
2 changes: 1 addition & 1 deletion makebroadcast
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ while [ "$*" != "" -o "$once" = "y" ] ; do
[ "$ffmpeg_err" -gt "0" ] && { report -wt "ffmpeg failed with error ${ffmpeg_err}" && exit 1;};
shift
done
log -e
log -e
2 changes: 1 addition & 1 deletion makedvd
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ while [ "$*" != "" -o "$once" = "y" ] ; do
report -dt "STATUS ${mediaid%.*}.iso is generated."
shift
done
log -e
log -e
2 changes: 1 addition & 1 deletion makelossless
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ while [ "$*" != "" ] ; do
echo done with "$sourcefile"
shift
done
log -e
log -e
2 changes: 1 addition & 1 deletion makemetadata
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ while [ "$*" != "" ] ; do
shift
counter=`expr "$counter" + 1`
done
log -e
log -e
2 changes: 1 addition & 1 deletion makepodcast
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ while [ "$*" != "" -o "$once" = "y" ] ; do
eval "$makepodcastcommand"
shift
done
log -e
log -e
2 changes: 1 addition & 1 deletion makeyoutube
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ while [ "$*" != "" -o "$once" = "y" ] ; do
fi
shift
done
log -e
log -e
3 changes: 2 additions & 1 deletion mmfunctions
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ report(){
case "$opt" in
q) color="$BLUE" ;; # question mode, use color blue
d) color="$GREEN" ;; # declaration mode, use color green
w) color="$RED" ;; # warning mode, use color red
w) color="$RED" ; log="Y";; # warning mode, use color red
t) startmessage="$(get_iso8601) - " ;; # prepend timestamp to the message
s) startmessage+="[$(basename $0)] " ;; # prepend scriptname to the message
n) echoopt="-n" ;; # to avoid line breaks after echo
Expand All @@ -45,6 +45,7 @@ report(){
shift $(( ${OPTIND} - 1 ))
message="$1"
echo $echoopt "${color}${startmessage}${message}${NC}"
[ "$log" = "Y" ] && log -c "$message"
}

black_at_ends(){
Expand Down
2 changes: 1 addition & 1 deletion paperingest
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ask_operator

ask_mediaid

if [ -d "$mediaid" ] ; then
if [ -d "$outputdir_paper/$mediaid" ] ; then
report -wdt "It looks like this $mediaid was already scanned. If you want to overwrite the existing one please delete $mediaid first and then try again."
exit
fi
Expand Down
4 changes: 2 additions & 2 deletions quickcompare
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ log -b
#[ ! `du "$1" | cut -f1` = `du "$2" | cut -f1` ] && echo The files are different sizes
[ ! `head -c "$checksize" "$1" | md5` = `head -c "$checksize" "$2" | md5` ] && echo The first "$checksize" bytes have different md5s.
[ ! `tail -c "$checksize" "$1" | md5` = `tail -c "$checksize" "$2" | md5` ] && echo The last "$checksize" bytes have different md5s.
done
log -e

log -e
2 changes: 1 addition & 1 deletion removeDSStore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ while [ "$*" != "" ] ; do
fi
shift
done
log -e
log -e
2 changes: 1 addition & 1 deletion uploadomneon
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ report -wt "$filename is already on the omneon as a $size_g gigabyte file."
fi
shift
done
log -e
log -e
2 changes: 1 addition & 1 deletion xdcamingest
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,4 @@ while true ; do
fi
fi
done
log -e
log -e

0 comments on commit d5e38a1

Please sign in to comment.