s_java
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. #!/bin/sh -
  2. # $Id: s_java,v 1.3 2000/07/13 18:38:46 bostic Exp $
  3. #
  4. # Build the Java files.
  5. msgcxx="// DO NOT EDIT: automatically built by dist/s_java."
  6. . RELEASE
  7. f=../java/src/com/sleepycat/db/DbConstants.java
  8. echo "Building $f"
  9. rm -f $f
  10. (echo "$msgcxx" && 
  11.  echo &&
  12.  echo 'package com.sleepycat.db;' &&
  13.  echo &&
  14.  echo 'public class DbConstants' &&
  15.  echo '{' &&
  16.  egrep '^#define.DB_' ../include/db.src | 
  17.  sed -e '/"/d' 
  18.      -e '/@DB_VERSION_/d' 
  19.      -e '/DB_REDO/d' 
  20.      -e '/DB_UNDO/d' 
  21.      -e 's/[()]/ /g' 
  22.      -e 's//*/ /' | 
  23.  awk '{ print "tpublic static final int " $2 " = " $3 ";" }' &&
  24.  echo " public static final int DB_VERSION_MAJOR = $DB_VERSION_MAJOR;" &&
  25.  echo " public static final int DB_VERSION_MINOR = $DB_VERSION_MINOR;" &&
  26.  echo " public static final int DB_VERSION_PATCH = $DB_VERSION_PATCH;" &&
  27.  echo '}') > $f
  28. chmod 444 $f