--- freem/mk-solaris-package 2025/03/09 19:14:24 1.6 +++ freem/mk-solaris-package 2025/03/10 15:13:18 1.7 @@ -1,7 +1,7 @@ #!/usr/bin/bash # -# $Id: mk-solaris-package,v 1.6 2025/03/09 19:14:24 snw Exp $ +# $Id: mk-solaris-package,v 1.7 2025/03/10 15:13:18 snw Exp $ # Solaris package builder # # @@ -26,6 +26,9 @@ # along with FreeM. If not, see . # # $Log: mk-solaris-package,v $ +# Revision 1.7 2025/03/10 15:13:18 snw +# Enhance mk-solaris-package script to validate arguments +# # Revision 1.6 2025/03/09 19:14:24 snw # First phase of REUSE compliance and header reformat # @@ -34,6 +37,16 @@ # SPDX-License-Identifier: AGPL-3.0-or-later # +PGM=$(basename $0) + +if [[ $# != 2 ]] +then + echo "usage: ${PGM} " + echo " should be sparc, sparcv9, i386, or amd64" + echo " should be solaris or openindiana" + exit 1 +fi + PKG=CLDfreem ARCH=$1