[LON-CAPA-cvs] cvs: doc /loncapafiles picins_check.piml

raeburn raeburn@source.lon-capa.org
Mon, 02 May 2011 12:39:45 -0000


raeburn		Mon May  2 12:39:45 2011 EDT

  Modified files:              
    /doc/loncapafiles	picins_check.piml 
  Log:
  - Get picins.sty from install.loncapa.org instead of ctan.org to future-proof about
    path changes at ctan site.
  
  
Index: doc/loncapafiles/picins_check.piml
diff -u doc/loncapafiles/picins_check.piml:1.11 doc/loncapafiles/picins_check.piml:1.12
--- doc/loncapafiles/picins_check.piml:1.11	Sun Feb 27 18:54:59 2011
+++ doc/loncapafiles/picins_check.piml	Mon May  2 12:39:45 2011
@@ -3,7 +3,7 @@
 <!-- picins_check.piml -->
 <!-- Stuart Raeburn -->
 
-<!-- $Id: picins_check.piml,v 1.11 2011/02/27 18:54:59 raeburn Exp $ -->
+<!-- $Id: picins_check.piml,v 1.12 2011/05/02 12:39:45 raeburn Exp $ -->
 
 <!--
 
@@ -47,8 +47,9 @@
             }
         }
         if (-d $picinspath) {
-            system("/usr/bin/wget -O $picinspath/$file  http://www.ctan.org/get/macros/latex209/contrib/picins/picins.sty  1>/dev/null 2>/dev/null");
-            die("/usr/bin/wget -O  http://www.ctan.org/get/macros/latex209/contrib/picins/picins.sty failed") if $?;
+            my $srcurl = 'http://install.loncapa.org/ctan/tex-archive/macros/latex209/contrib/picins/picins.sty';
+            system("/usr/bin/wget -O $picinspath/$file $srcurl 1>/dev/null 2>/dev/null");
+            die("/usr/bin/wget -O $srcurl failed") if $?;
             if (-e $picinspath.'/'.$file) {
                 system('/usr/bin/texconfig rehash  1>/dev/null 2>/dev/null');
                 die("Can't run /usr/bin/texconfig rehash") if $?;