Install_deps: add an '--info' path option to store BUILD_NOTES.txt...

Still defaults to current dir!
This commit is contained in:
Bastien Montagne
2014-09-19 15:12:25 +02:00
parent 07bb3641f5
commit d76d3144b4

View File

@@ -25,10 +25,12 @@
ARGS=$( \ ARGS=$( \
getopt \ getopt \
-o s:i:t:h \ -o s:i:t:h \
--long source:,install:,tmp:,threads:,help,no-sudo,with-all,with-opencollada,ver-ocio:,ver-oiio:,ver-llvm:,ver-osl:,\ --long source:,install:,tmp:,info:,threads:,help,no-sudo,with-all,with-opencollada,\
ver-ocio:,ver-oiio:,ver-llvm:,ver-osl:,\
force-all,force-python,force-numpy,force-boost,force-ocio,force-oiio,force-llvm,force-osl,force-opencollada,\ force-all,force-python,force-numpy,force-boost,force-ocio,force-oiio,force-llvm,force-osl,force-opencollada,\
force-ffmpeg,skip-python,skip-numpy,skip-boost,skip-ocio,skip-oiio,skip-llvm,skip-osl,skip-ffmpeg,\ force-ffmpeg,\
skip-opencollada,required-numpy: \ skip-python,skip-numpy,skip-boost,skip-ocio,skip-oiio,skip-llvm,skip-osl,skip-ffmpeg,skip-opencollada,\
required-numpy: \
-- "$@" \ -- "$@" \
) )
@@ -38,6 +40,7 @@ SRC="$HOME/src/blender-deps"
INST="/opt/lib" INST="/opt/lib"
TMP="/tmp" TMP="/tmp"
CWD=$PWD CWD=$PWD
INFO_PATH = CWD
# Do not install some optional, potentially conflicting libs by default... # Do not install some optional, potentially conflicting libs by default...
WITH_ALL=false WITH_ALL=false
@@ -74,6 +77,9 @@ ARGUMENTS_INFO="\"COMMAND LINE ARGUMENTS:
--tmp=<path> --tmp=<path>
Use a specific temp path (defaults to '\$TMP'). Use a specific temp path (defaults to '\$TMP').
--info=<path>
Use a specific info path (to store BUILD_NOTES.txt, defaults to '\$INFO_PATH').
-t n, --threads=n -t n, --threads=n
Use a specific number of threads when building the libraries (auto-detected as '\$THREADS'). Use a specific number of threads when building the libraries (auto-detected as '\$THREADS').
@@ -320,6 +326,9 @@ while true; do
--tmp) --tmp)
TMP="$2"; shift; shift; continue TMP="$2"; shift; shift; continue
;; ;;
--info)
INFO_PATH="$2"; shift; shift; continue
;;
-t|--threads) -t|--threads)
THREADS="$2"; shift; shift; continue THREADS="$2"; shift; shift; continue
;; ;;
@@ -3098,9 +3107,9 @@ else
exit 1 exit 1
fi fi
print_info | tee BUILD_NOTES.txt print_info | tee $INFO_PATH/BUILD_NOTES.txt
PRINT "" PRINT ""
PRINT "This information has been written to BUILD_NOTES.txt" PRINT "This information has been written to $INFO_PATH/BUILD_NOTES.txt"
PRINT "" PRINT ""
# Switch back to user language. # Switch back to user language.