Menu

[r3]: / MainTest / Build / Unpack  Maximize  Restore  History

Download this file

55 lines (40 with data), 919 Bytes

#!/bin/ksh -ue
#!/bin/ksh -uvxe
#§
#§  Compiler2 - Unpack
#§
#§  (C) IPN - Ingenieurbuero fuer Praezisionsnumerik
#§
#§  Dipl.-Ing. Andreas Otto
#§  Ulmenstrasse 3
#§  D-34289 Zierenberg
#§  mailto:aotto@t-online.de
#§
#§  Alle Rechte vorbehalten
#§
#§

##
## ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
##

. $STDLIB

##
## ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
##

(( $# != 3 )) && Error "usage: Unpack \"package\" \"dir\" \"arch\" <got $@>"

[[ $3 == "NO" ]] && TAR=download/${1}.tar.gz || TAR=download/${1}_${3}.tar.gz
DIR=build/$2

[[ ! -f $TAR ]] && Error "\"$TAR\" is not available"

##
## ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
##

[[ -d $DIR ]] && {

    ##
    Head delete \"$2\" ------------------------------------------
    ##

    rm -fr $DIR
}

##
Head unpack \"$1\" ------------------------------------------
##

cd build

tar -xzf ../$TAR

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.