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 |
# NOTE: Only use this line with =findutils-4.2.23
|
83 |
find ./ -maxdepth 1 -iregex '.*\.par2$' \! -iregex '.*\.vol[0-9]\++[0-9]\+\.par2$' -print0 \
|
84 |
# find ./ -maxdepth 1 -iregex '.*\.par2$' \! -iregex '.*\.vol[0-9]\++[0-9]\+\.par2$' -print0 \
|
84 |
| xargs -0 -n1 -i rarslave "{}" "parsort"
|
85 |
# | xargs -0 -n1 -i rarslave "{}" "parsort"
|
85 |
|
86 |
|
86 |
# When using <=findutils-4.2.20 (or thereabouts), use the following. The "+" operator
|
87 |
# When using <=findutils-4.2.20 (or thereabouts), use the following. The "+" operator
|
87 |
# has changed in later versions.
|
88 |
# has changed in later versions.
|
- |
|
89 |
# NOTE: Behaivior is back to this in >=findutils-4.2.24
|
88 |
#find ./ -maxdepth 1 -iregex '.*\.par2$' \! -iregex '.*\.vol[0-9]+\+[0-9]+\.par2$' -print0 \
|
90 |
find ./ -maxdepth 1 -iregex '.*\.par2$' \! -iregex '.*\.vol[0-9]+\+[0-9]+\.par2$' -print0 \
|
89 |
# | xargs -0 -n1 -i rarslave "{}" "parsort"
|
91 |
| xargs -0 -n1 -i rarslave "{}" "parsort"
|
90 |
|
92 |
|
91 |
# Extract files, and delete the set if it extracted correctly
|
93 |
# Extract files, and delete the set if it extracted correctly
|
92 |
sed 's/.par2$//' goodfiles | sed 's/.PAR2$//' > completefiles
|
94 |
sed 's/.par2$//' goodfiles | sed 's/.PAR2$//' > completefiles
|
93 |
|
95 |
|
94 |
# for each FILENAME in completefiles, extract them
|
96 |
# for each FILENAME in completefiles, extract them
|