2 #Should run this command from the project root directory
4 #TODO:validate it is project root by checking some files
6 install_dir
=`grep "prefix =" Makefile|tail -1|awk '{ print $3 }'`
7 echo "installdir is ${install_dir}"
9 #sed -e "s/getc([ ]*yyin[ ]*)/(*lexInput++)/1" dmllex.cxx >tmp.c
15 mkdir
-p ${install_dir}/lib
16 cp CSqlJdbcDriver.jar
${install_dir}/lib
20 #Any new libraries needs to be added here
23 mv libcsqlsql libcsqlsql.so
24 mv libcsqljdbc libcsqljdbc.so
25 mv libcsqlnw libcsqlnw.so
26 mv libcsqlsqllog libcsqlsqllog.so
27 mv libcsqlodbc libcsqlodbc.so
28 mv libcsqlodbcadapter libcsqlodbcadapter.so
29 mv libcsqlgw libcsqlgw.so
30 mv libcacheload libcacheload.so
31 mv libcsqlsqlnw libcsqlsqlnw.so
32 ln -s libcsqlgw.so libcsqlgw
33 ln -s libcsqlodbcadapter.so libcsqlodbcadapter
34 ln -s libcsqlodbc.so libcsqlodbc
35 ln -s libcsqlsqllog.so libcsqlsqllog
36 ln -s libcsqlnw.so libcsqlnw
37 ln -s libcsqljdbc.so libcsqljdbc
38 ln -s libcsqlsql.so libcsqlsql
39 ln -s libcsql.so libcsql
40 ln -s libcacheload.so libcacheload
41 ln -s libcsqlsqlnw.so libcsqlsqlnw
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
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
${install_dir}
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
69 cp -R ${root_dir}/demo
${install_dir}
70 find ${install_dir}/demo
-name "CVS" -exec rm -rf {} \
; 2>/dev
/null
72 echo "Build completed Successfully"