- START=$( ./find-pgn-split-point.sh "$FILE" $X 40 )
- END=$( ./find-pgn-split-point.sh "$FILE" $(( X + 1 )) 40 )
- ~/nmu/pgn-extract/pgn-extract --startpos $START --endpos $END --startfilenum $PGNNUM -e -Wsessebin "$FILE" 2>/dev/null
+ COMP=0
+ if echo "$FILE" | grep -q ^comp:; then
+ COMP=1
+ FILE=$( echo "$FILE" | sed s/comp:// )
+ fi
+ START=$( ./find-pgn-split-point.sh "$FILE" $X $MAPPERS )
+ END=$( ./find-pgn-split-point.sh "$FILE" $(( X + 1 )) $MAPPERS )
+ ~/nmu/pgn-extract/pgn-extract --computerflag $COMP --startpos $START --endpos $END --startfilenum $PGNNUM -e -Wsessebin "$FILE" 2>/dev/null