feat(unitproc/bkt-remove-leading_zeroes):Remove read_stdin()
[BK-2020-03.git] / user / mw_create_month_journal_range.sh
old mode 100644 (file)
new mode 100755 (executable)
index f2846b5..068987b
@@ -1,13 +1,16 @@
 #!/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
-# 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
+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