projects
/
BK-2020-03.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat(unitproc):Bash function to insert string into another string
[BK-2020-03.git]
/
user
/
mw_create_month_journal_range.sh
diff --git
a/user/mw_create_month_journal_range.sh
b/user/mw_create_month_journal_range.sh
index f2846b59b1f50cb74383b9e3561a1449809e2a56..068987b575db64cab50304dd6821a023233af990 100644
(file)
--- a/
user/mw_create_month_journal_range.sh
+++ b/
user/mw_create_month_journal_range.sh
@@
-1,13
+1,16
@@
#!/usr/bin/env bash
#!/usr/bin/env bash
+# Desc: Wrapper for creating monthly journal page generation script
+# Input: arg1: path mw_create_month_journal.sh
+# arg2: year start
+# arg3: year end
+# Example: mw_create_month_journal_range.sh ./mw_create_month_journal.sh 2030 2040
# Depends: BK-2020-03: mw_create_month_journal.sh
# Depends: BK-2020-03: mw_create_month_journal.sh
-# Version: 0.0.1
-
-# update each run
-path_cmj="$HOME/git-OC/BK-2020-03..bkexdev/user/mw_create_month_journal.sh";
-year_start="1582";
-year_end="2100";
+# Version: 1.0.0
# plumbing
# plumbing
+path_cmj="$1"; # eg "$HOME/scripts/mw_create_month_journal.sh"
+year_start="$2"; # eg 2030
+year_end="$3"; # eg 2040
dir_out="./wikicode/";
yell() { echo "$0: $*" >&2; } # print script path and all args to stderr
dir_out="./wikicode/";
yell() { echo "$0: $*" >&2; } # print script path and all args to stderr