Subversion Repositories programming

Rev

Rev 98 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
89 irasnyd 1
#!/bin/sh
2
 
113 ira 3
lxsplit -j "${@}".001                   ### Attempt to join the file
4
par2repair "${@}".*???2                 ### Attempt to repair the joined file
89 irasnyd 5
 
113 ira 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
13
 
89 irasnyd 14
echo 'Done, Exiting!'