Changed "boinc" to BOINC_DB_NAME so database names are based on env variables

svn path=/trunk/boinc/; revision=177
This commit is contained in:
Barry Luong 2002-07-11 20:31:07 +00:00
parent a9f93e4749
commit 88e5356845
1 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,11 @@
#! /bin/tcsh
mysql < drop.sql
mysql < schema.sql
mysql < constraints.sql
sed -e s/BOINC_DB_NAME/$BOINC_DB_NAME/g drop.sql > drop_temp.sql
sed -e s/BOINC_DB_NAME/$BOINC_DB_NAME/g schema.sql > schema_temp.sql
sed -e s/BOINC_DB_NAME/$BOINC_DB_NAME/g constraints.sql > constraints_temp.sql
mysql < drop_temp.sql
mysql < schema_temp.sql
mysql < constraints_temp.sql
rm -f drop_temp.sql schema_temp.sql constraints_temp.sql