File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ CreateRpm() # Arguments: package arch files
128128
129129makearco=false
130130makebin=false
131+ maketestbin=false
131132makecommon=false
132133makedoc=false
133134makesgeee=false
@@ -166,6 +167,12 @@ while [ $ARGC -gt 0 ]; do
166167 shift
167168 ARGC=` expr $ARGC - 1`
168169 ;;
170+ -testbin)
171+ echo " Creating tar file(s) of test binaries in testbin/"
172+ maketestbin=true
173+ shift
174+ ARGC=` expr $ARGC - 1`
175+ ;;
169176 -common)
170177 echo " Creating tar file with common files of distribution"
171178 makecommon=true
@@ -381,6 +388,28 @@ if [ $makebin = true ]; then
381388 fi
382389fi
383390
391+ if [ $maketestbin = true ]; then
392+ if [ " $SELECTED_ARCHS " = " " ]; then
393+ ErrUsage
394+ fi
395+
396+ # do any necessary postprocessing of the "testbin" package here
397+ if [ -f localext/$VDIR /mk_dist.private.bin ]; then
398+ echo executing commands from mk_dist.private.bin
399+ . ./localext/$VDIR /mk_dist.private.bin
400+ fi
401+
402+ cd $VDIR
403+ echo creating testbin tar.gz files for $SELECTED_ARCHS
404+ for i in $SELECTED_ARCHS ; do
405+ ADIR=" testbin/$i "
406+ filename=$BASEDIR /${PRODUCT} -${VERSION} -testbin-${i} .tar.gz
407+ echo Command: $TAR cvzf $filename $ADIR
408+ $TAR cvzf $filename $ADIR
409+ done
410+ cd ..
411+ fi
412+
384413if [ -x /usr/bin/md5sum ]; then
385414 cd $BASEDIR
386415 /usr/bin/md5sum * .tar.gz * .pdf * .rpm > " $BASEDIR /${PRODUCT} -${VERSION} -md5sum.txt"
You can’t perform that action at this time.
0 commit comments