You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. # AUTHOR: shaggy
  3. # FILE: cbr2cbz.sh
  4. # ROLE: TODO (some explanation)
  5. # CREATED: 2015-04-04 08:36:54
  6. # MODIFIED: 2015-04-04 08:37:00
  7. #bin/bash
  8. cbr=$1
  9. start_directory=`pwd`
  10. cbz=`basename "$cbr" .cbr`.cbz
  11. tempdir=`mktemp -d`
  12. cd "$tempdir"
  13. unrar e -inul "$start_directory/$cbr"
  14. zip -q "$start_directory/$cbz" *
  15. rm -rf "$tempdir"