Menu

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

Download this file

47 lines (36 with data), 800 Bytes

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

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

. $STDLIB

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

(( $# != 2 )) && Error "usage: PkgAdd \"package\" \"arch\""

PKG=$1.tpkg

[[ ! -d $PKG ]] && Error "\"$PKG\" is not available"

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

##
Head pkgadd \"$1\" ------------------------------------------
##

if [[ $2 == "NO" ]]; then
    cct -m wini386 -t $1 pkg --upd 1>/dev/null
else
    cct -m $2 -t $1 pkg --upd 1>/dev/null 
fi

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.