Count is binded with long long type parameter internally.
[csql.git] / csqlinstallmmdb.ksh
blobb81814fb46aeaef7186bdd39e541bd57bf8f3f36
1 #!/bin/sh
2 #Should run this command from the project root directory
4 #TODO:validate it is project root by checking some files
5 root_dir=`pwd`
6 install_dir=`grep "prefix =" Makefile|tail -1|awk '{ print $3 }'`
7 if [ -z "$install_dir" ]
8 then
9 echo "install_dir is not set properly."
10 exit 1
13 echo "installdir is ${install_dir}"
14 #cd src/sql
15 #sed -e "s/getc([ ]*yyin[ ]*)/(*lexInput++)/1" dmllex.cxx >tmp.c
16 #cp tmp.c dmllex.cxx
17 #make
18 #cd ../..
19 cd src/jdbc
20 ./buildJdbcDriver.ksh
21 mkdir -p ${install_dir}/lib
22 cp CSqlJdbcDriver.jar ${install_dir}/lib
23 cd ${root_dir}
24 make install
26 #Any new libraries needs to be added here
27 cd ${install_dir}/lib
28 mv libcsql libcsql.so
29 mv libcsqlsql libcsqlsql.so
30 mv libcsqljdbc libcsqljdbc.so
31 mv libcsqlnw libcsqlnw.so
32 mv libcsqlsqlnw libcsqlsqlnw.so
33 mv libcsqlsqllog libcsqlsqllog.so
34 mv libcsqlodbc libcsqlodbc.so
35 ln -s libcsqlodbc.so libcsqlodbc
36 ln -s libcsqlsqllog.so libcsqlsqllog
37 ln -s libcsqlnw.so libcsqlnw
38 ln -s libcsqlsqlnw.so libcsqlsqlnw
39 ln -s libcsqljdbc.so libcsqljdbc
40 ln -s libcsqlsql.so libcsqlsql
41 ln -s libcsql.so libcsql
44 cp ${root_dir}/src/sql/Statement.h ${install_dir}/include
45 cp ${root_dir}/src/sql/Parser.h ${install_dir}/include
46 cd ${install_dir}/include
48 #rm Allocator.h CatalogTables.h Database.h
49 #rm DatabaseManagerImpl.h
50 #rm Globals.h Index.h Lock.h PredicateImpl.h
51 #rm Process.h SessionImpl.h TableImpl.h Transaction.h UserManagerImpl.h
52 cd ${install_dir}/bin
53 rm csqlreplserver repltable
55 cp ${root_dir}/README ${install_dir}/README
56 cp ${root_dir}/COPYING ${install_dir}
57 cp ${root_dir}/AUTHORS ${install_dir}
58 cp ${root_dir}/ChangeLog ${install_dir}
59 cp ${root_dir}/csql.conf.mmdb ${install_dir}/csql.conf
60 cp ${root_dir}/setupenv.ksh.install ${install_dir}/setupenv.ksh
61 cp -R ${root_dir}/examples ${install_dir}
62 find ${install_dir}/examples -name "CVS" -exec rm -rf {} \; 2>/dev/null
63 rm -rf ${install_dir}/examples/dbapi
64 rm -rf ${install_dir}/lib/*.a
65 rm -rf ${install_dir}/lib/*.la
67 cp -R ${root_dir}/docs ${install_dir}
68 find ${install_dir}/docs -name "CVS" -exec rm -rf {} \; 2>/dev/null
70 rm -rf ${install_dir}/demo
71 mkdir ${install_dir}/demo
72 cp -R ${root_dir}/demo/wisc ${install_dir}/demo
73 find ${install_dir}/demo -name "CVS" -exec rm -rf {} \; 2>/dev/null
74 cd ${root_dir}
75 echo "Build completed Successfully"