checking the limit of int datatype
[csql.git] / csqlinstall.ksh
blobf5c78139a0abdae21ecf9371fcb05d7893ab8112
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 cp CSqlJdbcDriver.jar ${install_dir}/lib
16 cd ${root_dir}
17 make install
19 #Any new libraries needs to be added here
20 cd ${install_dir}/lib
21 mv libcsql libcsql.so
22 mv libcsqlsql libcsqlsql.so
23 mv libcsqljdbc libcsqljdbc.so
24 mv libcsqlnw libcsqlnw.so
25 mv libcsqlsqllog libcsqlsqllog.so
26 #ln -s libcsql.so libcsql
27 #ln -s libcsqlsql.so libcsqlsql
28 #ln -s libcsqljdbc.so libcsqljdbc
31 cp ${root_dir}/src/sql/Statement.h ${install_dir}/include
32 cp ${root_dir}/src/sql/Parser.h ${install_dir}/include
33 cd ${install_dir}/include
34 #rm Allocator.h CatalogTables.h Database.h
35 #rm DatabaseManagerImpl.h
36 #rm Globals.h Index.h Lock.h PredicateImpl.h
37 #rm Process.h SessionImpl.h TableImpl.h Transaction.h UserManagerImpl.h
39 cp ${root_dir}/README.INSTALL ${install_dir}/README
40 cp ${root_dir}/Doxyfile ${install_dir}
41 cp ${root_dir}/COPYING ${install_dir}
42 cp ${root_dir}/AUTHORS ${install_dir}
43 cp ${root_dir}/ChangeLog ${install_dir}
44 cp ${root_dir}/csql.conf ${install_dir}
45 cp -R ${root_dir}/examples ${install_dir}
46 find ${install_dir}/examples -name "CVS" -exec rm -rf {} \;
47 cp -R ${root_dir}/docs ${install_dir}
48 find ${install_dir}/docs -name "CVS" -exec rm -rf {} \;
49 cd ${root_dir}