#!/bin/sh
# $Id: no-rcs,v 1.2 2019/01/18 00:52:09 tom Exp $
# source this in multipart build-scripts which may fail to produce a makefile
# but fail to return an exit-code that stops a make.

rcs_save() {
	if test -h RCS
	then
		echo "** saving RCS-links"
		RCS-toggle >/dev/null
		trap 'rc=$?; rcs_restore; exit $rc' EXIT INT QUIT TERM
	fi
}

rcs_restore() {
	if test -h .@-RCS
	then
		echo "** restoring RCS-links"
		RCS-toggle >/dev/null
	fi
}
