--- /dev/null
+#!/bin/sh
+majorvers=`uname -r | sed 's/\..*//'`
+if [ $majorvers -ne 20 ]; then
+ exit 112
+fi
+
+# check for temporary versions of ThisCell and CellAlias
+# and move them aside
+tmpthiscell=/private/tmp/org.OpenAFS.Install.ThisCell.$USER
+tmpcellalias=/private/tmp/org.OpenAFS.Install.CellAlias.$USER
+date=`date +%Y%m%d%H%M`
+if [ -e $tmpthiscell ]; then
+ mv -f $tmpthiscell $tmpthiscell.$date
+fi
+if [ -e $tmpcellalias ]; then
+ mv -f $tmpcellalias $tmpcellalias.$date
+fi
+
+exit 0
--- /dev/null
+{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf320
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\margl1440\margr1440\vieww9000\viewh9000\viewkind0
+\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
+
+\f0\fs24 \cf0 This release of OpenAFS is targeted at MacOS 11.0 (Big Sur) and is not recommended for use with any other version.}
RELNAME="Catalina"
THISREL=15
+elif [ x"$majorvers" = x20 ]; then
+ RELNAME="BigSur"
+ # Big Sur version number is 11.0 (not 10.16). Still, set THISREL to 16 so we
+ # know that this version came after the ones listed above.
+ THISREL=16
+ OSVER=11
+
elif [ x"$majorvers" = x ] ; then
echo "Error running uname" >&2
exit 1
fi
# generate Distribution.xml from Distribution.xml.in -- nonstandard substs
- sed -e "s/%%OSX_MAJOR_CUR%%/$THISREL/g" \
- -e "s/%%OSX_MAJOR_NEXT%%/$(( $THISREL + 1 ))/g" \
- -e "s,%%PRES_EXTRA%%,$PRES_EXTRA,g" \
- -e "s/%%OPENAFS_VERSION%%/@PACKAGE_VERSION@/g" \
- < Distribution.xml.in > Distribution.xml
+ if [ $majorvers -ge 20 ] ; then
+ # Unlike older versions, point releases for macOS Big Sur increment the
+ # second component of the release number (prior releases increment the
+ # third component of this number).
+ sed -e "s/%%OSX_MAJOR_CUR%%/0/g" \
+ -e "s/%%OSX_MAJOR_NEXT%%/0/g" \
+ -e "s/%%OSVER_CUR%%/$OSVER/g" \
+ -e "s/%%OSVER_NEXT%%/$(( $OSVER + 1 ))/g" \
+ -e "s,%%PRES_EXTRA%%,$PRES_EXTRA,g" \
+ -e "s/%%OPENAFS_VERSION%%/@PACKAGE_VERSION@/g" \
+ < Distribution.xml.in > Distribution.xml
+ else
+ sed -e "s/%%OSX_MAJOR_CUR%%/$THISREL/g" \
+ -e "s/%%OSX_MAJOR_NEXT%%/$(( $THISREL + 1 ))/g" \
+ -e "s/%%OSVER_CUR%%/10/g" \
+ -e "s/%%OSVER_NEXT%%/10/g" \
+ -e "s,%%PRES_EXTRA%%,$PRES_EXTRA,g" \
+ -e "s/%%OPENAFS_VERSION%%/@PACKAGE_VERSION@/g" \
+ < Distribution.xml.in > Distribution.xml
+ fi
rm -rf "$CURDIR/prod"
mkdir "$CURDIR/prod"