~ubuntu-branches/debian/jessie/scummvm/jessie

« back to all changes in this revision

Viewing changes to backends/platform/n64/pad_rom.sh

  • Committer: Bazaar Package Importer
  • Author(s): Moritz Muehlenhoff
  • Date: 2010-05-07 18:57:09 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20100507185709-34v8yycywjrou5o3
Tags: upstream-1.1.1
ImportĀ upstreamĀ versionĀ 1.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
TARGET="scummvm"
 
4
BASESIZE=2097152
 
5
 
 
6
CARTSIZE=`ls -l $TARGET.v64 | cut -d" " -f5`
 
7
 
 
8
REMAINDER=`echo $CARTSIZE % $BASESIZE   | bc`
 
9
REMAINDER=`echo $BASESIZE - $REMAINDER  | bc`
 
10
CARTSIZE=`echo $CARTSIZE + $REMAINDER  | bc`
 
11
 
 
12
ucon64 -q --n64 --v64 --chk --padn=$CARTSIZE  $TARGET.v64
 
13