[Swift-commit] r3023 - SwiftApps/SEE/trunk/site_pack

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Tue Jul 28 10:42:58 CDT 2009


Author: aespinosa
Date: 2009-07-28 10:42:58 -0500 (Tue, 28 Jul 2009)
New Revision: 3023

Modified:
   SwiftApps/SEE/trunk/site_pack/run_ampl
Log:
Bug fix for generating symlinks

Modified: SwiftApps/SEE/trunk/site_pack/run_ampl
===================================================================
--- SwiftApps/SEE/trunk/site_pack/run_ampl	2009-07-28 15:42:51 UTC (rev 3022)
+++ SwiftApps/SEE/trunk/site_pack/run_ampl	2009-07-28 15:42:58 UTC (rev 3023)
@@ -260,52 +260,52 @@
 INSTANCE_ID=$2
 
 # Fix missing constants
-if [ ! -a $PREFIX/$INSTANCE_ID/arm_16x16.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/arm_16x16.dat ]; then
   ln -sf $SCRIPTDIR/arm_16x16.dat $PREFIX/$INSTANCE_ID/arm_16x16.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/consumersigma.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/consumersigma.dat ]; then
   ln -sf $SCRIPTDIR/consumersigma.dat $PREFIX/$INSTANCE_ID/consumersigma.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/producersigma.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/producersigma.dat ]; then
   ln -sf $SCRIPTDIR/producersigma.dat $PREFIX/$INSTANCE_ID/producersigma.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/eppa_energy_eff.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/eppa_energy_eff.dat ]; then
   ln -sf $SCRIPTDIR/eppa_energy_eff.dat $PREFIX/$INSTANCE_ID/eppa_energy_eff.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/labor_growth.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/labor_growth.dat ]; then
   ln -sf $SCRIPTDIR/labor_growth.dat $PREFIX/$INSTANCE_ID/labor_growth.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/consumerdemands.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/consumerdemands.dat ]; then
   ln -sf $SCRIPTDIR/consumerdemands.dat $PREFIX/$INSTANCE_ID/consumerdemands.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/consumersalestax.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/consumersalestax.dat ]; then
   ln -sf $SCRIPTDIR/consumersalestax.dat $PREFIX/$INSTANCE_ID/consumersalestax.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/consumersalestax.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/consumersalestax.dat ]; then
   ln -sf $SCRIPTDIR/consumersalestax.dat $PREFIX/$INSTANCE_ID/consumersalestax.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/export_taxes.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/export_taxes.dat ]; then
   ln -sf $SCRIPTDIR/export_taxes.dat $PREFIX/$INSTANCE_ID/export_taxes.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/factor_incomes.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/factor_incomes.dat ]; then
   ln -sf $SCRIPTDIR/factor_incomes.dat $PREFIX/$INSTANCE_ID/factor_incomes.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/imports.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/imports.dat ]; then
   ln -sf $SCRIPTDIR/imports.dat $PREFIX/$INSTANCE_ID/imports.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/consumerdemands.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/consumerdemands.dat ]; then
   ln -sf $SCRIPTDIR/consumerdemands.dat $PREFIX/$INSTANCE_ID/consumerdemands.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/import_taxes.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/import_taxes.dat ]; then
   ln -sf $SCRIPTDIR/import_taxes.dat $PREFIX/$INSTANCE_ID/import_taxes.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/otherdemands.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/otherdemands.dat ]; then
   ln -sf $SCRIPTDIR/otherdemands.dat $PREFIX/$INSTANCE_ID/otherdemands.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/othersalestax.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/othersalestax.dat ]; then
   ln -sf $SCRIPTDIR/othersalestax.dat $PREFIX/$INSTANCE_ID/othersalestax.dat
 fi
-if [ ! -a $PREFIX/$INSTANCE_ID/production_taxes.dat ]; then
+if [ ! -f $PREFIX/$INSTANCE_ID/production_taxes.dat ]; then
   ln -sf $SCRIPTDIR/production_taxes.dat $PREFIX/$INSTANCE_ID/production_taxes.dat
 fi
 




More information about the Swift-commit mailing list