#!/bin/perl -s # # Script to copy parameter files # # Only copies those parameter files that used the compiled thorns # # Version: $Id$ $home = `pwd`; chop($home); $config = $ARGV[0]; open(THORNLIST,") { /^(\S*)/; $line = $1; next if (m:^\#:); $thorns[$nthorns] = $line; $nthorns++; } close(THORNLIST); @sorted = sort(@thorns); for ($i=0;$i<$nthorns;$i++) { $thorn = $sorted[$i]; $thorn = "arrangements/$thorn/par"; if (-d $thorn) { $newthorn = 1; chdir $thorn; while ($parfile = <*.par>) { $gotall = 1; $counter = 0; @ActiveThorns = &GetActiveThorns($parfile); $donothave = ""; for ($j=0;$j) { if ($_ =~ /ActiveThorns\s*=\s*\"(.*)\"/) { @ActiveThorns = split(' ',$1); } } close(PAR); # Get rid of spaces and change to lower case for ($i=0;$i