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

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [tools/] [bin/] [tar_env] - Blame information for rev 105

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

Line No. Rev Author Line
1 7 fafa1971
#!/bin/bash
2
 
3
# This script makes a tarball of the S1 environment:
4
# you should call "clean_env" before calling this,
5
# otherwise you will get a huge file.
6
 
7 86 fafa1971
if [ -z "$S1_ROOT" ]; then echo "***ERROR***: S1_ROOT variable is undefined, please set it and run 'source sourceme'."; exit 1; fi
8
if ! [ -d "$S1_ROOT" ]; then echo "***ERROR***: directory '$S1_ROOT' does not exist, please check it and run 'source sourceme' again."; exit 1; fi
9
 
10 7 fafa1971
TARBALL=$HOME/simplyrisc-s1.tar
11
 
12
rm -f $TARBALL* $S1_ROOT/*.tar*
13
cd $S1_ROOT/..
14
tar cvf $TARBALL `basename $S1_ROOT`
15
gzip $TARBALL
16
mv -f $TARBALL.gz $S1_ROOT
17
 

powered by: WebSVN 2.1.0

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