#!/bin/csh -f
# localuse not for download
# master.csh
#source /nfs/soft/jchem/current/env.csh
source /nfs/soft/mitools/env.csh
source /nfs/soft/www/apps/zinc15/envs/production/env.csh
setenv ZINC_CONFIG_ENV admin
setenv ZINC_CONFIG_SETUP_SKIP blueprints

cd /nfs/db/export/catalogs/

setenv i $1
mkdir -p $i
cd $i
#psql -h mem -U test zinc15 -c "select short_name from catalog where purchasable = $i order by original_size" -t -F '\t' -o list
foreach j (`cat list`)
	pushd $j
	../../fetchVendJ.py $j > $j.predict.txt
	popd 
end
