Subversion Repositories programming

Rev

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

Rev 98 Rev 113
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
 
2
 
3
lxsplit -j "${@}".001
3
lxsplit -j "${@}".001                   ### Attempt to join the file
4
par2repair "${@}" && rm "${@}".???*
4
par2repair "${@}".*???2                 ### Attempt to repair the joined file
-
 
5
 
-
 
6
RETURN_CODE=$?                          ### Get the return code of the repair
-
 
7
 
-
 
8
if [ ${RETURN_CODE} -eq 0 ]; then       ### If the repair was successful
-
 
9
    rm "${@}".???*                      ### then remove all the source files
-
 
10
else                                    ### If the repair was not successful
-
 
11
    rm "${@}"                           ### then remove the attempted file
-
 
12
fi
5
 
13
 
6
echo 'Done, Exiting!'
14
echo 'Done, Exiting!'