From a4a83a85377e184cccb01c1f2f2455a6412fa527 Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Wed, 20 Jun 2012 16:06:12 -0400 Subject: created scripts directory --- batch-process | 67 ----------------------------------------------------------- 1 file changed, 67 deletions(-) delete mode 100755 batch-process (limited to 'batch-process') diff --git a/batch-process b/batch-process deleted file mode 100755 index bdd67a9..0000000 --- a/batch-process +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/sh -usage() -{ -cat << EOF -usage: $0 options - -OPTIONS: - -h Show this message - -i Input file - -V verbose mode - -Input file should contain the following format: - -VideoType:VideoLocation:StartNumber:CropList - -Ex First10MinSet:/path/to/video/First10MinGroup8:68:First10MinGroup8CropList.txt - -Copyright 2012 Calvin Morrison -EOF -} - -function log () { - if [[ $verbose -eq 1 ]]; then - echo "$@" - fi -} - -# Declaration of Variables -verbose= -input_file= - -while getopts "Vhi:" OPTION -do - case $OPTION in - h) - usage - exit 1 - ;; - V) - verbose=1 - ;; - i) - input_file=$OPTARG - ;; - ?) - usage - exit - ;; - esac -done - - -if [[ -z $input_file ]] -then - usage - exit 1 -fi - -if [ -f "$input_file" ]; then - log "$input_file exists." -else - echo "error: $input_file was not found" - exit 1 -fi - - - -- cgit v1.2.3