![]() ![]() | ![]() |
Improve solaris packaging script
#!/usr/bin/bash PKG=CLDfreem ARCH=$1 OS=$2 VERS=$(cat sem.ver) SOLVER=$(uname -a | cut -d' ' -f3) PKGFILE=${PKG}-${VERS}-${OS}${SOLVER}-${ARCH}.pkg cat <<EOF > pkginfo PKG=${PKG} NAME=Coherent Logic Development FreeM programming language and database. ARCH=${ARCH} VERSION=${VERS} CATEGORY=application BASEDIR=/usr/local EOF pkgmk -o -d /tmp -a ${ARCH} touch ${PKGFILE} pkgtrans -s /tmp ${PKGFILE} ${PKG} rm -r /tmp/${PKG}