From 53538bfb9bafcedeb2ebcbf8b8b4c36370a9ea1d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 14 Nov 2017 13:03:42 +0200 Subject: Add -o option to stage script to only package baseutils/mingw --- stage | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stage b/stage index 55e801e..270d8fd 100755 --- a/stage +++ b/stage @@ -4,6 +4,8 @@ # # -b # Packages baseutils/mingw. +# -o +# Only package baseutils/mingw. # -q # Put packages into the queue instead of staging. # -p @@ -30,6 +32,7 @@ fi mode= base= +only= dist_src=staging/0 dist_dst=stage.build2.org:/var/www/stage.build2.org/public/0 @@ -39,6 +42,10 @@ while [ $# -gt 0 ]; do base=true shift ;; + -o) + only=true + shift + ;; -q) mode=-q dist_src=cppget.org/0 @@ -107,6 +114,10 @@ if [ -n "$base" ]; then mv "/tmp/build2-mingw-$v-x86_64-windows.tar.xz.sha256" "$dist_src/$v/" fi +if [ "$only" = true ]; then + exit 0 +fi + mkdir -p /tmp/dist # Dist build2-toolchain. -- cgit v1.1