version 1.43, 2019/10/28 16:24:23
|
version 1.44, 2020/01/04 18:03:16
|
Line 32 http://www.lon-capa.org/
|
Line 32 http://www.lon-capa.org/
|
<piml> |
<piml> |
<files> |
<files> |
<file> |
<file> |
<perlscript mode="fg" dist="fedora9 fedora10 fedora11 fedora12 fedora13 fedora14 fedora15 fedora16 fedora17 fedora18 fedora19 fedora20 fedora21 fedora22 fedora 23 fedora24 fedora25 fedora26 fedora27 fedora28 fedora29 fedora30 fedora31 rhes6 scientific6 centos6 oracle6 rhes7 scientific7 centos7 oracle7 rhes8 centos8 oracle8 sles11 sles12 sles15 suse11.1 suse11.2 suse11.3 suse11.4 suse12.1 suse12.2 suse12.3 suse13.1 suse13.2 debian5 debian6 ubuntu8 ubuntu10 ubuntu12 ubuntu14 ubuntu16 ubuntu18"> |
<perlscript mode="fg" dist="fedora9 fedora10 fedora11 fedora12 fedora13 fedora14 fedora15 fedora16 fedora17 fedora18 fedora19 fedora20 fedora21 fedora22 fedora 23 fedora24 fedora25 fedora26 fedora27 fedora28 fedora29 fedora30 fedora31 rhes6 scientific6 centos6 oracle6 rhes7 scientific7 centos7 oracle7 rhes8 centos8 oracle8 sles11 sles12 sles15 suse11.1 suse11.2 suse11.3 suse11.4 suse12.1 suse12.2 suse12.3 suse13.1 suse13.2 debian5 debian6 ubuntu8 ubuntu10 ubuntu12 ubuntu14 ubuntu16 ubuntu18 ubuntu20"> |
my $picinspath = '/usr/share/texmf/tex/latex/picins'; |
my $picinspath = '/usr/share/texmf/tex/latex/picins'; |
my $file = 'picins.sty'; |
my $file = 'picins.sty'; |
if (!-e "$picinspath/$file") { |
if (!-e "$picinspath/$file") { |
Line 54 http://www.lon-capa.org/
|
Line 54 http://www.lon-capa.org/
|
die("/usr/bin/wget -O $srcurl failed") if $?; |
die("/usr/bin/wget -O $srcurl failed") if $?; |
chmod(0644, "$picinspath/$file"); |
chmod(0644, "$picinspath/$file"); |
if (-e $picinspath.'/'.$file) { |
if (-e $picinspath.'/'.$file) { |
if ('<DIST />' eq 'ubuntu16' || '<DIST />' eq 'ubuntu18') { |
if ('<DIST />' eq 'ubuntu16' || '<DIST />' eq 'ubuntu18' || '<DIST />' eq 'ubuntu20') { |
system('/usr/bin/mktexlsr'); |
system('/usr/bin/mktexlsr'); |
die("Can't run /usr/bin/mktexlsr") if $?; |
die("Can't run /usr/bin/mktexlsr") if $?; |
print "$picinspath/$file created and /usr/bin/mktexlsr ran successfully.\n"; |
print "$picinspath/$file created and /usr/bin/mktexlsr ran successfully.\n"; |