#!/bin/sh
#
# chum converts between umask and chmod values
# (ie. "chum 700" returns "077", the umask value for chmod 700, and
# chum 022 returns "755", the chmod value for umask 022)
#

if [ ! -z "$@" ]; then
	echo $(($@-777)) | sed "s/-//g"
fi
