summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Holm <dholm@gentoo.org>2004-03-05 13:29:09 +0000
committerDavid Holm <dholm@gentoo.org>2004-03-05 13:29:09 +0000
commitb65669349fd20d4aedbb3b24f73a8a7d4cda0101 (patch)
tree1fa26e574fad4d8e73a447c74938a96fe1fb4c36 /app-emulation/uae/files
parentstable on sparc (diff)
downloadhistorical-b65669349fd20d4aedbb3b24f73a8a7d4cda0101.tar.gz
historical-b65669349fd20d4aedbb3b24f73a8a7d4cda0101.tar.bz2
historical-b65669349fd20d4aedbb3b24f73a8a7d4cda0101.zip
Added splitter script from Michal Januszewski (spock@g.o)
Diffstat (limited to 'app-emulation/uae/files')
-rw-r--r--app-emulation/uae/files/split_cpuemu.pl32
1 files changed, 32 insertions, 0 deletions
diff --git a/app-emulation/uae/files/split_cpuemu.pl b/app-emulation/uae/files/split_cpuemu.pl
new file mode 100644
index 000000000000..0ddacecc6c87
--- /dev/null
+++ b/app-emulation/uae/files/split_cpuemu.pl
@@ -0,0 +1,32 @@
+#!/usr/bin/perl
+
+open(INPUT, "<cpuemu_6.c");
+open(OUT1, ">cpuemu_6.t");
+open(OUT2, ">cpuemu_7.c");
+
+$header = 1;
+$part = 0;
+
+while ($line = <INPUT>) {
+
+ $size += length($line);
+
+ if (($line =~ /^#/ || $line eq "\n") && ($line ne "#ifdef PART_1\n") && $header) {
+ print OUT1 $line;
+ print OUT2 $line;
+ } else {
+
+ $header = 0;
+
+ if ($line ne "#ifdef PART_4\n" && $part == 0) {
+ print OUT1 $line;
+ } else {
+ $part = 1;
+ print OUT2 $line;
+ }
+ }
+}
+
+close(OUT2);
+close(OUT1);
+close(INPUT);