1# 2# Information about who is compiling the binary.... 3# This file is in the public domain, such as it is. 4# 5 6comp_host=`hostname | cut -d. -f1` 7comp_user=$USER 8comp_time=`date +"%B %d, %Y"` 9comp_num=`cat .times` 10echo "*** This is compile #$comp_num by $comp_user@$comp_host on $comp_time" 11new_comp_num=`expr $comp_num + 1` 12echo $new_comp_num > .times 13 14# Dump the C file... 15cat > info.c << __E__O__F__ 16/* 17 * info.c -- info about who compiled this version. 18 * This file is auto-magically created. Changes will be nuked. 19 */ 20 21#include "config.h" 22#ifdef ANONYMOUS_COMPILE 23#define USER "<anonymous>" 24#define HOST "<anonymous>" 25#else 26#define USER "$comp_user" 27#define HOST "$comp_host" 28#endif 29 30char *compile_user = "$comp_user"; 31char *compile_host = "$comp_host"; 32char *compile_time = "$comp_time"; 33char *compile_num = "$comp_num"; 34char *compile_info = "Compile #$comp_num by " USER "@" HOST " on $comp_time"; 35 36__E__O__F__ 37