/[svn]/linuxsampler/trunk/scripts/create_instr_db.sh
ViewVC logotype

Annotation of /linuxsampler/trunk/scripts/create_instr_db.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1161 - (hide annotations) (download) (as text)
Mon Apr 16 15:51:18 2007 UTC (17 years ago) by iliev
File MIME type: application/x-sh
File size: 446 byte(s)
* Implemented instruments database

1 iliev 1161 #!/bin/sh
2    
3     MYDIR="`dirname $0`"
4     INSTR_DB="$MYDIR/../instruments.db"
5     SQLITE="`which sqlite3`"
6    
7     echo "Creating the instrument's DB..."
8    
9     if [ ! -x "$SQLITE" ] ; then
10     echo "Can't find sqlite3" 1>&2
11     exit -1
12     fi
13    
14     if [ -e "$INSTR_DB" ] ; then
15     echo "DB file exists ($INSTR_DB); Skipping..."
16     echo "To recreate the instrument DB remove the old DB file first."
17     exit
18     fi
19    
20     $SQLITE -line $INSTR_DB < "$MYDIR/create_instr_db.sql"
21    
22     echo "Done"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC