=== added file 'scripts/lib_convert_batch.sh'
--- scripts/lib_convert_batch.sh	1970-01-01 00:00:00 +0000
+++ scripts/lib_convert_batch.sh	2013-09-30 13:57:50 +0000
@@ -0,0 +1,45 @@
+#!/bin/sh
+# Call the lib_convert.py script for each legacy library, according to the
+# provided paths.
+# Carl Poirier <carl.poirier.2@gmail.com>
+# License GPLv2
+
+# Requirements:
+# Functional KiCad build with python scripting and fp_lib_table enabled.
+# To do so, the following make variables have to be set to ON:
+# KICAD_SCRIPTING
+# KICAD_SCRIPTING_MODULES
+# USE_FP_LIB_TABLE
+
+# Usage:
+# $ lib_convert_batch.sh pcbnew_directory legacy_directory pretty_directory
+
+# pcbnew_directory: Directory containing the pcbnew executable
+# legacy_directory: Directory containing the .mod files to be converted.
+# pretty_directory: Directory in which the .pretty directories will be created.
+
+
+# Verify there are exactly two arguments
+if [ $# -ne 3 ]
+then
+  echo "Usage: lib_convert_batch.sh legacy_directory pretty_directory"
+  exit
+fi
+
+# Getting the list of legacy modules
+legacyLibList=$(echo ${2%/}/*.mod)
+
+# Did we find any?
+if [ "$legacyLibList" == "${2%/}/*.mod" ]
+then
+  echo "No legacy modules found in the input directory."
+  exit
+fi
+
+# Convert them one by one
+for legacyName in $legacyLibList
+do
+    prettyName="`basename $legacyName .mod`.pretty"
+    PYTHONPATH="$1" ./lib_convert.py "$legacyName" "${3%/}/$prettyName"
+    echo "Created ${3%/}/$prettyName"
+done

=== modified file 'scripts/make_global_table.sh'
--- scripts/make_global_table.sh	2013-06-25 15:56:12 +0000
+++ scripts/make_global_table.sh	2013-09-30 13:04:35 +0000
@@ -15,7 +15,7 @@
 # $ make_global_table.sh [--csv] > outputfile
 
 # Library Type:  Legacy for now, Kicad in future
-libtype="Legacy"
+libtype="KiCad"
 
 
 # Get a list of modules currently in the launchpad repo:
@@ -34,7 +34,7 @@
 today=`date --rfc-3339=date`
 
 if [ $csv -eq 1 ]; then
-    echo "NICKNAME,TYPE,URI,OPTIONS,DESCR,,FP LIB TABLE: made from KiCad's Bazaar 'library' repository on $today"
+    echo "NICKNAME,URI,TYPE,OPTIONS,DESCR,,FP LIB TABLE: made from KiCad's Bazaar 'library' repository on $today"
     echo
 
     echo "$mods" | while read mod;
@@ -42,10 +42,10 @@
         # base filename w/o extension
         bfn=`basename $mod .mod`
 
-        printf '%s,%s,${KISYSMOD}/%s,"",""\n' \
+        printf '%s,${KISYSMOD}/%s,%s,"",""\n' \
             "$bfn" \
-            "$libtype" \
-            "$bfn.mod"
+            "$bfn.mod" \
+            "$libtype"
     done
 
 else
@@ -58,10 +58,10 @@
         # base filename w/o extension
         bfn=`basename $mod .mod`
 
-        printf ' (lib (name %s)(type %s)(uri ${KISYSMOD}/%s)(options "")(descr ""))\n' \
+        printf ' (lib (name %s)(uri ${KISYSMOD}/%s)(type %s)(options "")(descr ""))\n' \
             "$bfn" \
-            "$libtype" \
-            "$bfn.mod"
+            "$bfn.mod" \
+            "$libtype"
     done
 
     echo ")"

