Subversion Repositories programming

Rev

Rev 113 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 113 Rev 118
Line 78... Line 78...
78
 
78
 
79
    # Set/Clean up the Environment
79
    # Set/Clean up the Environment
80
    cleanup_temp
80
    cleanup_temp
81
 
81
 
82
    # Repair everything, and sort it into "goodfiles" and "badfiles"
82
    # Repair everything, and sort it into "goodfiles" and "badfiles"
83
    find ./ -maxdepth 1 -iregex '.*\.par2$' \! -iregex  '.*\.vol[0-9]+\+[0-9]+\.par2$' -print0 \
83
    find ./ -maxdepth 1 -iregex '.*\.par2$' \! -iregex  '.*\.vol[0-9]\++[0-9]\+\.par2$' -print0 \
84
        | xargs -0 -n1 \
84
        | xargs -0 -n1 -i rarslave "{}" "parsort"
-
 
85
 
-
 
86
    # When using <=findutils-4.2.20 (or thereabouts), use the following. The "+" operator
-
 
87
    # has changed in later versions.
-
 
88
    #find ./ -maxdepth 1 -iregex '.*\.par2$' \! -iregex  '.*\.vol[0-9]+\+[0-9]+\.par2$' -print0 \
85
        | xargs -I{} rarslave "{}" "parsort"
89
    #    | xargs -0 -n1 -i rarslave "{}" "parsort"
86
 
90
 
87
    # Extract files, and delete the set if it extracted correctly
91
    # Extract files, and delete the set if it extracted correctly
88
    sed 's/.par2$//' goodfiles | sed 's/.PAR2$//' > completefiles
92
    sed 's/.par2$//' goodfiles | sed 's/.PAR2$//' > completefiles
89
 
93
 
90
    # for each FILENAME in completefiles, extract them
94
    # for each FILENAME in completefiles, extract them