Browse Source

allow to set custom version

belliash 7 years ago
parent
commit
138f3e0f13
3 changed files with 18 additions and 0 deletions
  1. 8
    0
      ezbuild
  2. 8
    0
      ezsync
  3. 2
    0
      libraries/common

+ 8
- 0
ezbuild View File

@@ -22,6 +22,14 @@ until [[ -z "${1}" ]]; do
22 22
 		-c|--cleanlog)
23 23
 			EZOPT_CLEANLOG=true
24 24
 			;;
25
+		-D|--tarballdate)
26
+			shift
27
+			if [ -z ${1} ]; then
28
+				die "--tarballdate requires an additional argument!"
29
+			else
30
+				TARBALLDATE="${1}"
31
+			fi
32
+			;;
25 33
 		-h|--help)
26 34
 			showEzbuildUsage
27 35
 			;;

+ 8
- 0
ezsync View File

@@ -22,6 +22,14 @@ until [[ -z "${1}" ]]; do
22 22
 		-c|--cleanlog)
23 23
 			EZOPT_CLEANLOG=true
24 24
 			;;
25
+		-D|--tarballdate)
26
+			shift
27
+			if [ -z ${1} ]; then
28
+				die "--tarballdate requires an additional argument!"
29
+			else
30
+				TARBALLDATE="${1}"
31
+			fi
32
+			;;
25 33
 		-h|--help)
26 34
 			showEzsyncUsage
27 35
 			;;

+ 2
- 0
libraries/common View File

@@ -398,6 +398,7 @@ function showEzbuildUsage() {
398 398
 	echo -e "building a custom Linux releases and templates.\n"
399 399
 	echo -e "USAGE: ezsync [parameters]"
400 400
 	echo -e "  -c\t--cleanlog\tclears log file; not working with -p and -P"
401
+	echo -e "  -D\t--tarballdate\toverrides produced image version/date format"
401 402
 	echo -e "  -h\t--help\t\tdisplays this screen and exits immediately"
402 403
 	echo -e "  -l\t--listmods\tshows the list of available built-in modules"
403 404
 	echo -e "  -p\t--purge\t\tclears temporary folder"
@@ -415,6 +416,7 @@ function showEzsyncUsage() {
415 416
 	echo -e "\treGen2 Linux for synchronizing Portage Tree with mainline.\n"
416 417
 	echo -e "USAGE: ezsync [parameters]"
417 418
 	echo -e "  -c\t--cleanlog\tclears log file; not working with -p and -P"
419
+	echo -e "  -D\t--tarballdate\toverrides produced image version/date format"
418 420
 	echo -e "  -h\t--help\t\tdisplays this screen and exits immediately"
419 421
 	echo -e "  -l\t--listmods\tshows the list of available built-in modules"
420 422
 	echo -e "  -n\t--nosync\tspecifies the ebuilds source that will be omitted"

Loading…
Cancel
Save