1910873 memory corruption when long username in connectstring
[csql.git] / csqlinstall.ksh
blob986c3fde4cc1d0519b243fac233f07cfaf5d06e2
1 #!/bin/ksh
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 echo "installdir is ${install_dir}"
8 #cd src/sql
9 #sed -e "s/getc([ ]*yyin[ ]*)/(*lexInput++)/1" dmllex.cxx >tmp.c
10 #cp tmp.c dmllex.cxx
11 #make
12 #cd ../..
13 cd src/jdbc
14 ./buildJdbcDriver.ksh
15 mkdir -p ${install_dir}/lib
16 cp CSqlJdbcDriver.jar ${install_dir}/lib
17 cd ${root_dir}
18 make install
20 #Any new libraries needs to be added here
21 cd ${install_dir}/lib
22 mv libcsql libcsql.so
23 mv libcsqlsql libcsqlsql.so
24 mv libcsqljdbc libcsqljdbc.so
25 mv libcsqlnw libcsqlnw.so
26 mv libcsqlsqllog libcsqlsqllog.so
27 ln -s libcsql.so libcsql
28 ln -s libcsqlsql.so libcsqlsql
29 ln -s libcsqljdbc.so libcsqljdbc
30 ln -s libcsqlnw.so libcsqlnw
31 ln -s libcsqlsqllog.so libcsqlsqllog
34 cp ${root_dir}/src/sql/Statement.h ${install_dir}/include
35 cp ${root_dir}/src/sql/Parser.h ${install_dir}/include
36 cd ${install_dir}/include
37 #rm Allocator.h CatalogTables.h Database.h
38 #rm DatabaseManagerImpl.h
39 #rm Globals.h Index.h Lock.h PredicateImpl.h
40 #rm Process.h SessionImpl.h TableImpl.h Transaction.h UserManagerImpl.h
42 cp ${root_dir}/README.INSTALL ${install_dir}/README
43 cp ${root_dir}/Doxyfile ${install_dir}
44 cp ${root_dir}/COPYING ${install_dir}
45 cp ${root_dir}/AUTHORS ${install_dir}
46 cp ${root_dir}/ChangeLog ${install_dir}
47 cp ${root_dir}/csql.conf ${install_dir}
48 cp -R ${root_dir}/examples ${install_dir}
49 find ${install_dir}/examples -name "CVS" -exec rm -rf {} \;
50 cp -R ${root_dir}/docs ${install_dir}
51 find ${install_dir}/docs -name "CVS" -exec rm -rf {} \;
52 cd ${root_dir}