Files
Le Philousophe e7b93d516a MACOS: Migrate from ldid to rcodesign for signing
This does work as intended and it's maintained.
2024-09-15 09:56:14 +00:00

51 lines
663 B
Bash
Executable File

#! /bin/sh
cert=
deep=
force=
while [ $# -gt 0 ]; do
arg=$1
case $arg in
-s*)
cert=${arg#-s}
shift
if [ -z $cert ]; then
cert=$1
shift
fi
;;
--force)
force=1
shift
;;
--deep)
deep=1
shift
;;
--)
shift
break
;;
-*)
echo "ERROR: Unknown argument $arg" >&2
exit 1
;;
*)
break
;;
esac
done
if [ "$cert" != "-" ]; then
echo "WARNING: Only ad-hoc signing is supported for now" >&2
fi
if [ "$deep" != 1 ]; then
echo "WARNING: Only deep signing is supported for now" >&2
fi
if [ "$force" != 1 ]; then
echo "WARNING: Only force signing is supported for now" >&2
fi
rcodesign sign "$@"