3 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
12 location_code = ARGV.shift || 'mmd'
13 location = Location.find_by_code(location_code)
15 puts "location not found."
18 scrap = Scrap.find_by_location_code(location.code)
20 ent = "/Volumes/uploader/src/#{location.code}/index.html"
24 name, summary, size, date, origname, locked = scrap.row
25 arc = location.create_arc(name, summary, size, date, origname, locked)
26 arc.create_zip_entries("/Volumes/uploader/arc/#{location.code}/#{name}")