10 date 90.04.05.21.25.03; author sources; state Exp;
15 date 90.02.26.10.01.08; author sources; state Exp;
20 date 90.02.23.17.58.09; author sources; state Exp;
25 date 89.11.17.15.57.40; author sources; state Exp;
31 @used for shared libraries.
37 @update to take argument
40 @: run this script through /bin/sh
48 for A in rprompt hostname uname who
52 if [ ! -f $D/$A ]; then
56 rprompt) LOCAL=`$A %h`
62 who) LOCAL=`$A am i | sed -e 's%^\(.*\)!.*$%\1%'`
67 if [ "x$LOCAL" != x ]; then
74 : 'derivative of ../config/version.sh'
75 if [ ! -r version ]; then echo "0" > version ; fi
77 cat version ../config/version |\
79 BEGIN { split ("'"${1}"'", ver, ".");\
80 major = ver[1]; minor = ver[2]; patch = ver[3]}\
81 NR == 1 { compile = $(NF) }\
82 NR == 2 { if (major != $1) {major = $1; minor = 0};\
83 if (minor != $2) {minor = $2; compile = 0}}\
85 printf "version: libmh %d.%d.%d\n", major, minor, compile; \
86 printf "%d.%d.%d\n", major, minor, compile > "_version";}'
93 @*** empty log message ***
99 if [ ! -r version ]; then echo "6.6.0" > version ; fi
102 NR == 1 { major = $1; minor = $2; compile = $3 + 1}\
105 if (minor != $2) {minor = $2; compile = 1}}\
106 END { printf "version: libmh %d.%d.%d\n", major, minor, compile; \
112 @*** empty log message ***
118 cat _version ../config/version.major ../config/version.minor |\
121 NR == 0 { major = $1; minor = $2; compile = $3 + 1}\
122 NR == 1 { if (major != $1) {major = $1; minor = 0}}\
123 NR == 2 { if (minor != $1) {minor = $1; compile = 1}}\
126 printf "%d.%d.%d\n", major, minor, compile > "version";}'
132 @changes for SUN40 shared libraries and NNTP under bbc
137 if [ ! -r version.major ]; then echo 6 > version.major; fi
138 if [ ! -r version.minor ]; then echo 6 > version.minor; fi
139 if [ ! -r version.local ]; then echo 0 > version.local; fi
140 echo `cat version.major` `cat version.minor` `cat version.local` > version.tmp
141 rm -f version.c version.local
144 awk ' { major = $1; minor = $2; local = $3 + 1}\
145 END { printf "%d%d.%d\n", major, minor, local > "version"; \
146 printf "%d\n", local > "version.local"; }' < version.tmp