#! /bin/sh

# $1 is expected to be $TRAVIS_OS_NAME

if [ "$1" == osx ]; then
    make -f Makefile.in \
	 DISTTARVARS="NAME=_srcdist TAR_COMMAND='\$\$(TAR) \$\$(TARFLAGS) -s \"|^|\$\$(NAME)/|\" -T \$\$(TARFILE).list -cvf -' TARFLAGS='-n' TARFILE=_srcdist.tar" SHELL='sh -vx' dist
else
    make -f Makefile.in DISTTARVARS='TARFILE=_srcdist.tar NAME=_srcdist' SHELL='sh -v' dist
fi

#! /bin/sh

# $1 is expected to be $TRAVIS_OS_NAME

./Configure dist
if [ "$1" == osx ]; then
    make NAME='_srcdist' TARFLAGS='-n' TARFILE='_srcdist.tar' \
	 TAR_COMMAND='$(TAR) $(TARFLAGS) -s "|^|$(NAME)/|" -T $(TARFILE).list -cvf -' \
	 SHELL='sh -vx' tar
else
    make TARFILE='_srcdist.tar' NAME='_srcdist' SHELL='sh -v' dist
fi

Configure first in travis create release
Configure first in travis create release

Reviewed-by: Rich Salz <c04971a99e5a9ee80eaab4b1deb37e845b0bd697@openssl.org>
