|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T b
Length: 1065 (0x429) Types: TextFile Names: »bump_cnt.sh«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit └─⟦2fafebccf⟧ »EurOpenD3/mail/smail3.1.19.tar.Z« └─⟦bcd2bc73f⟧ └─⟦this⟧ »src/bump_cnt.sh«
#!/bin/sh # @(#)bump_cnt.sh 3.1 3/12/88 15:19:36 # Copyright (C) 1987, 1988 Ronald S. Karr and Landon Curt Noll # # See the file COPYING, distributed with smail, for restriction # and warranty information. # # namei master id: @(#)bump_cnt.sh 3.1 3/12/88 15:19:36 # incremement the compile counter and set the compilation date if [ ! -f ldinfo.c ]; then compile_num=0 else compile_num=`sed -n 's/^int compile_num = \(.*\);/\1/p' < ldinfo.c` if [ ! "$compile_num" ]; then compile_num=0; fi fi compile_num=`expr $compile_num + 1` compile_date=`date | awk '{ print $3 "-" $2 "-" substr($6,3) }' | tr '[A-Z]' '[a-z]'` cat > ldinfo.c <<EOF /* * This file defines the number of compiles since the first time this * file was created when compiling smail. This information is used in * expand.c to define the values for \$compile_num and \$compile_date. * To reset the compilation count, simply remove ldinfo.c. */ int compile_num = $compile_num; char *compile_date = "$compile_date"; EOF echo "Compile #$compile_num on $compile_date" exit 0