mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-04-06 20:41:35 +08:00
More CRLF -> LF
This commit is contained in:
parent
fdcc61d318
commit
49b35ff9c2
2 changed files with 39 additions and 39 deletions
|
@ -25,7 +25,7 @@ if(open(SVNINFO, "svn info $main_dir|")) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close(SVNINFO);
|
close(SVNINFO);
|
||||||
|
|
||||||
if(open(SVNSTATUS, "svn status $main_dir|")) {
|
if(open(SVNSTATUS, "svn status $main_dir|")) {
|
||||||
$clean = 1;
|
$clean = 1;
|
||||||
while(<SVNSTATUS>) {
|
while(<SVNSTATUS>) {
|
||||||
|
@ -36,9 +36,9 @@ if(open(SVNINFO, "svn info $main_dir|")) {
|
||||||
}
|
}
|
||||||
close(SVNINFO);
|
close(SVNINFO);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
# Strategy two: look for .svn/entries. The third line should be "dir", the fourth line should contain
|
# Strategy two: look for .svn/entries. The third line should be "dir", the fourth line should contain
|
||||||
# the currently checked out revision, the eleventh line should contain the last changed revision.
|
# the currently checked out revision, the eleventh line should contain the last changed revision.
|
||||||
# revision.
|
# revision.
|
||||||
if(open(ENTRIES, "$main_dir/.svn/entries")) {
|
if(open(ENTRIES, "$main_dir/.svn/entries")) {
|
||||||
|
@ -59,7 +59,7 @@ $compiletime[5] += 1900;
|
||||||
my $ctime = sprintf("%6\$04i-%5\$02i-%4\$02i %3\$02i:%2\$02i:%1\$02i", @compiletime);
|
my $ctime = sprintf("%6\$04i-%5\$02i-%4\$02i %3\$02i:%2\$02i:%1\$02i", @compiletime);
|
||||||
|
|
||||||
print <<EOF
|
print <<EOF
|
||||||
#include <proxmark3.h>
|
#include "proxmark3.h"
|
||||||
/* Generated file, do not edit */
|
/* Generated file, do not edit */
|
||||||
struct version_information __attribute__((section(".version_information"))) version_information = {
|
struct version_information __attribute__((section(".version_information"))) version_information = {
|
||||||
VERSION_INFORMATION_MAGIC,
|
VERSION_INFORMATION_MAGIC,
|
||||||
|
|
|
@ -1,35 +1,35 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
|
|
||||||
# endian-swap S records; we need this because the JTAG tools we're using
|
# endian-swap S records; we need this because the JTAG tools we're using
|
||||||
# expect the memory image in byte-swapped format
|
# expect the memory image in byte-swapped format
|
||||||
#
|
#
|
||||||
# Jonathan Westhues, April 2004
|
# Jonathan Westhues, April 2004
|
||||||
|
|
||||||
if(@ARGV == 0) {
|
if(@ARGV == 0) {
|
||||||
die "usage: $0 file-to-endian-swap.s19 > out.s19\n";
|
die "usage: $0 file-to-endian-swap.s19 > out.s19\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
while(<>) {
|
while(<>) {
|
||||||
chomp;
|
chomp;
|
||||||
|
|
||||||
if(/^S0/) {
|
if(/^S0/) {
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if(/^S7/) {
|
if(/^S7/) {
|
||||||
print "$_\n";
|
print "$_\n";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(not /^S3(..)(........)(.*)(..)$/) {
|
if(not /^S3(..)(........)(.*)(..)$/) {
|
||||||
die "bad S record at line $.\n";
|
die "bad S record at line $.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = $3;
|
$data = $3;
|
||||||
$checksum = $4;
|
$checksum = $4;
|
||||||
|
|
||||||
print "S3$1$2";
|
print "S3$1$2";
|
||||||
while($data =~ m#(..)(..)(..)(..)#g) {
|
while($data =~ m#(..)(..)(..)(..)#g) {
|
||||||
print "$4$3$2$1";
|
print "$4$3$2$1";
|
||||||
}
|
}
|
||||||
print "$checksum\n";
|
print "$checksum\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue