OpenCores
URL https://opencores.org/ocsvn/s1_core/s1_core/trunk

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [tools/] [bin/] [tar_env] - Rev 86

Go to most recent revision | Compare with Previous | Blame | View Log

#!/bin/bash

# This script makes a tarball of the S1 environment:
# you should call "clean_env" before calling this,
# otherwise you will get a huge file.

if [ -z "$S1_ROOT" ]; then echo "***ERROR***: S1_ROOT variable is undefined, please set it and run 'source sourceme'."; exit 1; fi
if ! [ -d "$S1_ROOT" ]; then echo "***ERROR***: directory '$S1_ROOT' does not exist, please check it and run 'source sourceme' again."; exit 1; fi

TARBALL=$HOME/simplyrisc-s1.tar

rm -f $TARBALL* $S1_ROOT/*.tar*
cd $S1_ROOT/..
tar cvf $TARBALL `basename $S1_ROOT`
gzip $TARBALL
mv -f $TARBALL.gz $S1_ROOT

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.