Verified Commit 115bf823 authored by Hans-Nikolai Viessmann's avatar Hans-Nikolai Viessmann
Browse files

seperate latest MacOS packages by architecture

This _latest_ link exists to make it easy for CI/CD systems and similar
to quickly have access to a version of Sac2c without having to deal with
a total pethora of choices.

For MacOS though some systems want only X86 compiled binaries or Arm64,
so now we provide explicit links for the two of these.

Additionally we update the License to match the OSS one.
Showing with 22 additions and 50 deletions
+22 -50
---------------------------------------------------------------------------
SAC - Single Assignment C
---------------------------------------------------------------------------
SAC COPYRIGHT NOTICE, LICENSE, AND DISCLAIMER
(c) Copyright 1994 - 2021 by
SAC Development Team
web: https://www.sac-home.org
email: info@sac-home.org
---------------------------------------------------------------------------
The SAC compiler, the SAC standard library, and all accompanying
software and documentation (in the following named this software)
is developed by the SAC Development Team (in the following named
the developer) which reserves all rights on this software.
Permission to use this software is hereby granted free of charge
for any non-profit purpose in a non-commercial environment, i.e. for
educational or research purposes in a non-profit institute or for
personal, non-commercial use. For this kind of use it is allowed to
copy or redistribute this software under the condition that the
complete distribution for a certain platform is copied or
redistributed and this copyright notice, license agreement, and
warranty disclaimer appears in each copy. ANY use of this software with
a commercial purpose or in a commercial environment is not granted by
this license.
The developer disclaims all warranties with regard to this software,
including all implied warranties of merchantability and fitness. In no
event shall the developer be liable for any special, indirect or
consequential damages or any damages whatsoever resulting from loss of
use, data, or profits, whether in an action of contract, negligence, or
other tortuous action, arising out of or in connection with the use or
performance of this software. The entire risk as to the quality and
performance of this software is with you. Should this software prove
defective, you assume the cost of all servicing, repair, or correction.
---------------------------------------------------------------------------
ISC License (ISC)
Copyright 2022-2023: Sven-Bodo Scholz, Clemens Grelck, and other contributors: https://gitlab.sac-home.org/sac-group/sac2c/-/blob/develop/CONTRIBUTORS.md
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
......@@ -8,7 +8,7 @@ We currently creates packages for:
- RHEL 7, RockyLinux 8 (_RHEL 8 is EOL_)
- Ubuntu 20.04, Ubuntu 22.04
- Linux generic (based on ArchLinux)
- MacOS 10.14+ (Universal binary, works on Intel and ARM systems)
- MacOS 11+ (Universal binary, works on Intel and ARM systems)
To get the latest packages, checkout the [release page](https://gitlab.science.ru.nl/sac-group/sac-packages/-/releases).
......
File added
File added
......@@ -7,22 +7,25 @@
# is that in the `latest' directory we will have _hard links_ to
# the actual package objects.
declare -Ar TYPES=([Ubl21]=deb [Ubl20]=deb [Ubl18]=deb [Ubl16]=deb [Rocky8]=rpm [RHEL8]=rpm [RHEL7]=rpm [RHEL6]=rpm [Linux]=tar.gz [MacOS]=pkg)
declare -Ar TYPES=([Ubl21]=deb [Ubl20]=deb [Ubl18]=deb [Ubl16]=deb [Rocky8]=rpm [RHEL8]=rpm [RHEL7]=rpm [RHEL6]=rpm [Linux]=tar.gz [MacOS_x86]=pkg [MacOS_arm64]=pkg)
for t in "${!TYPES[@]}"; do
if [ "x$t" = "xMacOS" ]; then
if [ "x$t" = "xMacOS_arm64" ]; then
_arch="arm64"
_sver="-13.4"
elif [ "x$t" = "xMacOS_x86" ]; then
_arch="x86_64"
_sver="-13.4"
else
_arch="x86_64"
_sver=""
fi
_ver="$(find packages/*/"$t-$_arch"* -type d | cut -s -d'/' -f4 | sort -b -u -t- -nk2 | tail -n 1)"
_ver="$(find packages/*/"${t%_*}-$_arch"* -type d | cut -s -d'/' -f4 | sort -b -u -t- -nk2 | tail -n 1)"
if [ -z "$_ver" ]; then
echo "$t-$_arch not found!" >&2
continue
fi
mkdir -p latest/weekly/"$t"
cp packages/weekly/"$t-$_arch$_sver"*/"$_ver"/basic/sac2c-* latest/weekly/"$t"/sac2c-basic."${TYPES[$t]}"
cp packages/weekly/"$t-$_arch$_sver"*/"$_ver"/basic/sac-* latest/weekly/"$t"/stdlib-basic."${TYPES[$t]}"
cp packages/weekly/"${t%_*}-$_arch$_sver"*/"$_ver"/basic/sac2c-* latest/weekly/"$t"/sac2c-basic."${TYPES[$t]}"
cp packages/weekly/"${t%_*}-$_arch$_sver"*/"$_ver"/basic/sac-* latest/weekly/"$t"/stdlib-basic."${TYPES[$t]}"
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment