#!/bin/bash -e #--------------------------------------------------------------------- SCNAME=build-05-tarball.sh echo $SCNAME started #--------------------------------------------------------------------- if [ "@$CHROTOP" == "@" ]; then echo Error: $SCNAME called out of order exit 1 fi if [ "@$SPCDIR" == "@" ]; then echo Error: $SCNAME called out of order exit 1 fi #--------------------------------------------------------------------- set -e IRIBASE=iridium OUTDIR=out SAVEFULL=$CHROTOP/outsave TARBALL=/var/tmp/$IRIBASE.tgz if [ -e $SAVEFULL ]; then echo Error: Something is out of order. This exists: echo $SAVEFULL exit 1 fi #--------------------------------------------------------------------- cd $CHROTOP ls -l $OUTDIR/chrome rm -fr $SAVEFULL $TARBALL $IRIBASE mkdir $SAVEFULL cd $OUTDIR strip chrome brotli mv gen obj *_deps *ninja* $SAVEFULL/ #--------------------------------------------------------------------- cd $CHROTOP mkdir -p $IRIBASE/bin mv $OUTDIR $IRIBASE/program cp -a $SPCDIR/wrappers/iridium.wrapper.in \ $IRIBASE/bin/$IRIBASE cd $IRIBASE/bin chmod 755 $IRIBASE ln -nsf $IRIBASE chrome ln -nsf $IRIBASE chromium #--------------------------------------------------------------------- cd $CHROTOP tar zcf $TARBALL $IRIBASE/ tardate $TARBALL mv $IRIBASE/program $OUTDIR mv $SAVEFULL/* $OUTDIR/ rmdir $SAVEFULL rm -fr $IRIBASE #--------------------------------------------------------------------- ls -l $TARBALL echo $SCNAME done #--------------------------------------------------------------------- # End of file.