Also save the header length and offset in the aft.
[paraslash.git] / convert_0.2-0.3.sh
index 73b52028b074c7531f3da49adcdbbedaf327f24a..19003931056dbdc187da40f303d5ef48197ba458 100755 (executable)
@@ -29,7 +29,7 @@ host02=localhost
 
 # How to connect to para_server 0.3.x.
 client03=./para_client
 
 # How to connect to para_server 0.3.x.
 client03=./para_client
-port03=2990
+port03=2991
 host03=localhost
 
 # Unset this to deactivate messages
 host03=localhost
 
 # Unset this to deactivate messages
@@ -70,7 +70,7 @@ convert_attribute_table()
 convert_attributes()
 {
        local att atts current_atts cmd query="select dir.dir, dir.name"
 convert_attributes()
 {
        local att atts current_atts cmd query="select dir.dir, dir.name"
-       exec_client02_cmd laa name dir
+       exec_client02_cmd laa
        atts="$result"
        for att in $atts; do
                query="$query, data.$att"
        atts="$result"
        for att in $atts; do
                query="$query, data.$att"
@@ -138,8 +138,8 @@ Usage: $0 command
 
 command is one of the following:
 
 
 command is one of the following:
 
-       attrbibute_table: create attributes
-       attrbibutes: convert attributes for each audio file
+       attribute_table: create attributes
+       attributes: convert attributes for each audio file
        lastplayed_numplayed: convert numplayed and lastplayed
                data of each audio file
        image_table: retrieve images from mysql and add them to the database
        lastplayed_numplayed: convert numplayed and lastplayed
                data of each audio file
        image_table: retrieve images from mysql and add them to the database
@@ -157,10 +157,10 @@ if test $# -ne 1; then
 fi
 
 case "$1" in
 fi
 
 case "$1" in
-attrbibute_table)
+attribute_table)
        convert_attribute_table
        ;;
        convert_attribute_table
        ;;
-attrbibutes)
+attributes)
        convert_attributes
        ;;
 lastplayed_numplayed)
        convert_attributes
        ;;
 lastplayed_numplayed)
@@ -178,6 +178,7 @@ all)
        convert_lastplayed_numplayed
        convert_image_table
        convert_image_ids
        convert_lastplayed_numplayed
        convert_image_table
        convert_image_ids
+       ;;
 *)
        usage
        exit 1
 *)
        usage
        exit 1