diff --git a/ezbuild b/ezbuild index 29462db..8aafce2 100755 --- a/ezbuild +++ b/ezbuild @@ -22,6 +22,14 @@ until [[ -z "${1}" ]]; do -c|--cleanlog) EZOPT_CLEANLOG=true ;; + -D|--tarballdate) + shift + if [ -z ${1} ]; then + die "--tarballdate requires an additional argument!" + else + TARBALLDATE="${1}" + fi + ;; -h|--help) showEzbuildUsage ;; diff --git a/ezsync b/ezsync index e856ff4..3b50a90 100755 --- a/ezsync +++ b/ezsync @@ -22,6 +22,14 @@ until [[ -z "${1}" ]]; do -c|--cleanlog) EZOPT_CLEANLOG=true ;; + -D|--tarballdate) + shift + if [ -z ${1} ]; then + die "--tarballdate requires an additional argument!" + else + TARBALLDATE="${1}" + fi + ;; -h|--help) showEzsyncUsage ;; diff --git a/libraries/common b/libraries/common index ab9366a..4126ae4 100644 --- a/libraries/common +++ b/libraries/common @@ -398,6 +398,7 @@ function showEzbuildUsage() { echo -e "building a custom Linux releases and templates.\n" echo -e "USAGE: ezsync [parameters]" echo -e " -c\t--cleanlog\tclears log file; not working with -p and -P" + echo -e " -D\t--tarballdate\toverrides produced image version/date format" echo -e " -h\t--help\t\tdisplays this screen and exits immediately" echo -e " -l\t--listmods\tshows the list of available built-in modules" echo -e " -p\t--purge\t\tclears temporary folder" @@ -415,6 +416,7 @@ function showEzsyncUsage() { echo -e "\treGen2 Linux for synchronizing Portage Tree with mainline.\n" echo -e "USAGE: ezsync [parameters]" echo -e " -c\t--cleanlog\tclears log file; not working with -p and -P" + echo -e " -D\t--tarballdate\toverrides produced image version/date format" echo -e " -h\t--help\t\tdisplays this screen and exits immediately" echo -e " -l\t--listmods\tshows the list of available built-in modules" echo -e " -n\t--nosync\tspecifies the ebuilds source that will be omitted"