subdirectories and convert all normal files within those
subdirectories (I hope this works on all unix variants).
endif
cd $scheme/psb
-foreach i (*)
+foreach i (`find * -type d -print | xargs echo`)
+ if (! -d $scheme/$i) then
+ echo "mkdir $scheme/$i"
+ mkdir $scheme/$i
+ endif
cd $scheme/psb/$i
foreach j (*)
- echo "Psbtobin $scheme/$i/$j"
- $scheme/microcode/Psbtobin < $j >! $scheme/$i/$j
+ if (-f $j) then
+ echo "Psbtobin $scheme/$i/$j"
+ $scheme/microcode/Psbtobin < $j >! $scheme/$i/$j
+ endif
end
end