Performance test on character primary key
[csql.git] / csqlinstall.ksh
blob7c0707445bde5a8451f04771e1fda24c2d46ee80
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
18 cd ${install_dir}/lib
19 cp libcsql libcsql.so
20 cp libcsqlsql libcsqlsql.so
21 cp libcsqljdbc libcsqljdbc.so
22 cp ${root_dir}/README.INSTALL ${install_dir}/README
23 cp ${root_dir}/Doxyfile ${install_dir}
24 cp ${root_dir}/COPYING ${install_dir}
25 cp ${root_dir}/AUTHORS ${install_dir}
26 cp ${root_dir}/ChangeLog ${install_dir}
27 cp -R ${root_dir}/examples ${install_dir}
28 find ${install_dir}/examples -name "CVS" -exec rm -rf {} \;
29 cp -R ${root_dir}/docs ${install_dir}
30 find ${install_dir}/docs -name "CVS" -exec rm -rf {} \;
34 cd ${root_dir}