EXPECTED_ARGS=1 E_BADARGS=65 if [ $# -ne $EXPECTED_ARGS ] then echo "Usage: `basename $0` {path_to_platform_sub_dir}" echo "Example: ./hex2task.sh ~/chdk-trunk/platform/a810/sub/100b" exit $E_BADARGS fi 1.
* 1) Create sed commands grep ^NSTUB $1/stubs_entry.S | grep 0x'[0|f][0|f]'| \ awk '{ printf("s/sub_%s/_%s/
",toupper(substr($2,4,8)),substr($1,7))}' > /tmp/hex2task.out 1.
* 2) Create patches for file in boot.c capt_seq.c movie_rec.c do done
| Attributes | Values |
|---|
| rdfs:label
| |
| rdfs:comment
| - EXPECTED_ARGS=1 E_BADARGS=65 if [ $# -ne $EXPECTED_ARGS ] then echo "Usage: `basename $0` {path_to_platform_sub_dir}" echo "Example: ./hex2task.sh ~/chdk-trunk/platform/a810/sub/100b" exit $E_BADARGS fi 1.
* 1) Create sed commands grep ^NSTUB $1/stubs_entry.S | grep 0x'[0|f][0|f]'| \ awk '{ printf("s/sub_%s/_%s/
",toupper(substr($2,4,8)),substr($1,7))}' > /tmp/hex2task.out 1.
* 2) Create patches for file in boot.c capt_seq.c movie_rec.c do done
|
| dcterms:subject
| |
| abstract
| - EXPECTED_ARGS=1 E_BADARGS=65 if [ $# -ne $EXPECTED_ARGS ] then echo "Usage: `basename $0` {path_to_platform_sub_dir}" echo "Example: ./hex2task.sh ~/chdk-trunk/platform/a810/sub/100b" exit $E_BADARGS fi 1.
* 1) Create sed commands grep ^NSTUB $1/stubs_entry.S | grep 0x'[0|f][0|f]'| \ awk '{ printf("s/sub_%s/_%s/
",toupper(substr($2,4,8)),substr($1,7))}' > /tmp/hex2task.out 1.
* 2) Create patches for file in boot.c capt_seq.c movie_rec.c do echo $1/$file if [ -f $1/$file ] then sed --in-place=.orig -f /tmp/hex2task.out $1/$file #Print the differences diff $1/$file $1/$file.orig fi done
|