File:  [Coherent Logic Development] / freem / Attic / mk-solaris-package
Revision 1.8: download - view: text, annotated - select for diffs
Mon Mar 10 18:00:04 2025 UTC (12 months, 3 weeks ago) by snw
Branches: MAIN
CVS tags: v0-63-1-rc1, v0-63-0-rc1, v0-63-0, v0-62-3, v0-62-2, v0-62-1, v0-62-0, HEAD
Fix formatting in mk-solaris-pkg

    1: #!/usr/bin/bash
    2: 
    3: #
    4: #   $Id: mk-solaris-package,v 1.8 2025/03/10 18:00:04 snw Exp $
    5: #    Solaris package builder
    6: #
    7: #  
    8: #   Author: Serena Willis <snw@coherent-logic.com>
    9: #    Copyright (C) 1998 MUG Deutschland
   10: #    Copyright (C) 2023, 2025 Coherent Logic Development LLC
   11: #
   12: #
   13: #   This file is part of FreeM.
   14: #
   15: #   FreeM is free software: you can redistribute it and/or modify
   16: #   it under the terms of the GNU Affero Public License as published by
   17: #   the Free Software Foundation, either version 3 of the License, or
   18: #   (at your option) any later version.
   19: #
   20: #   FreeM is distributed in the hope that it will be useful,
   21: #   but WITHOUT ANY WARRANTY; without even the implied warranty of
   22: #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   23: #   GNU Affero Public License for more details.
   24: #
   25: #   You should have received a copy of the GNU Affero Public License
   26: #   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
   27: #
   28: #   $Log: mk-solaris-package,v $
   29: #   Revision 1.8  2025/03/10 18:00:04  snw
   30: #   Fix formatting in mk-solaris-pkg
   31: #
   32: #   Revision 1.7  2025/03/10 15:13:18  snw
   33: #   Enhance mk-solaris-package script to validate arguments
   34: #
   35: #   Revision 1.6  2025/03/09 19:14:24  snw
   36: #   First phase of REUSE compliance and header reformat
   37: #
   38: #
   39: # SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
   40: # SPDX-License-Identifier: AGPL-3.0-or-later
   41: #
   42: 
   43: PGM=$(basename $0)
   44: 
   45: if [[ $# != 2 ]]
   46: then
   47:     echo "usage:  ${PGM} <architecture> <os>"
   48:     echo "        <architecture> should be sparc, sparcv9, i386, or amd64"
   49:     echo "        <os> should be solaris or openindiana"
   50:     exit 1
   51: fi
   52: 
   53: PKG=CLDfreem
   54: ARCH=$1
   55: OS=$2
   56: VERS=$(cat sem.ver)
   57: SOLVER=$(uname -a | cut -d' ' -f3)
   58: PKGFILE=${PKG}-${VERS}-${OS}${SOLVER}-${ARCH}.pkg
   59: 
   60: cat <<EOF > pkginfo
   61: PKG=${PKG}
   62: NAME=Coherent Logic Development FreeM programming language and database.
   63: ARCH=${ARCH}
   64: VERSION=${VERS}
   65: CATEGORY=application
   66: BASEDIR=/usr/local
   67: EOF
   68: 
   69: pkgmk -o -d /tmp -a ${ARCH}
   70: touch ${PKGFILE}
   71: pkgtrans -s /tmp ${PKGFILE} ${PKG}
   72: rm -r /tmp/${PKG}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>