DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T c

⟦6186dff73⟧ TextFile

    Length: 1178 (0x49a)
    Types: TextFile
    Names: »checkdefs.sh«

Derivation

└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
    └─⟦2fafebccf⟧ »EurOpenD3/mail/smail3.1.19.tar.Z« 
        └─⟦bcd2bc73f⟧ 
            └─⟦this⟧ »conf/lib/checkdefs.sh« 

TextFile

:
#!/bin/sh
# @(#)checkdefs.sh	1.1 3/12/89 12:05:55
# Update the defs.h, defs.sh and defs.sed files if they don't exist
# or will change as a result of differences in the EDITME, os and arch
# files.
#
#    Copyright (C) 1987, 1988 Ronald S. Karr and Landon Curt Noll
# 
# See the file COPYING, distributed with smail, for restriction
# and warranty information.

# Note:  this shell script uses case rather than test to prevent
#	 a fork/exec on systems where test is not a builtin.
#
# Note:	 We assume that ROOT is passed in the environment.

MKDEFS=$ROOT/conf/lib/mkdefs.sh

if [ ! -f defs.sh ] || [ ! -f defs.sed ] || [ ! -f defs.h ]; then
	rm -f defs.sh defs.sed defs.h
	echo sh $MKDEFS
	sh $MKDEFS
else
	echo Save copy of defs.sh, defs.h and defs.sed ...
	if mv defs.sh .defs.sh &&
	   mv defs.h .defs.h &&
	   mv defs.sed .defs.sed
	then
		:
	else
		echo "Failed to save defs.sh defs.h and defs.sed!" 1>&2
		exit 1
	fi
	echo sh $MKDEFS
	sh $MKDEFS
	if cmp -s defs.sh .defs.sh &&
	   cmp -s defs.h .defs.h &&
	   cmp -s defs.sed .defs.sed
	then
		mv .defs.sh defs.sh
		mv .defs.h defs.h
		mv .defs.sed defs.sed
		echo "saved files are identical, restored"
	fi
fi

exit 0