Commit eefa2870 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

[FEATURE] (DL1sum.sh): implement option -y|--year

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.
parent 3130884e
#!/bin/sh
# this is <DL1sum.sh>
# ----------------------------------------------------------------------------
VERSION=2014-05-09
VERSION=2015-01-07
#
# Copyright (c) 2014 by Thomas Forbriger (BFO Schiltach)
#
......@@ -26,6 +26,7 @@ VERSION=2014-05-09
#
# REVISIONS and CHANGES
# 09/05/2014 V1.0 Thomas Forbriger
# 07/01/2015 implement option -y|--year
#
# ============================================================================
#
......@@ -80,8 +81,8 @@ verbose() {
# ----
# read command line options
# -------------------------
TEMP=$(getopt -o hb:t:Dv --long \
help,basepath:,tmpfile:,verbose,debug \
TEMP=$(getopt -o hb:t:y:Dv --long \
help,year:,basepath:,tmpfile:,verbose,debug \
-n $(basename $0) -- "$@") || {
echo >&2
echo >&2 "ERROR: command line parameters are incorrect!"
......@@ -114,6 +115,7 @@ while true; do
--help|-h) usage; echo; longusage; exit 1;;
--) shift; break;;
-b|--basepath) BASEPATH=$2; shift;;
-y|--year) YEAR=$2; shift;;
-t|--tmpfile) TMPFILE=$2; shift;;
-v|--verbose) VERBOSE=1;;
-D) set -x ;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment