diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/ecfs/transform | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/ecfs/transform')
| -rw-r--r-- | other/ecfs/transform | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/other/ecfs/transform b/other/ecfs/transform new file mode 100644 index 0000000..9071929 --- /dev/null +++ b/other/ecfs/transform | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | # Takes kernel Ext2 headers and rewrites | ||
| 4 | # them to Ecfs headers in separate files. | ||
| 5 | # No kernel-headers are touched. | ||
| 6 | |||
| 7 | @cp = ( | ||
| 8 | "cp ". | ||
| 9 | "/usr/src/linux/include/linux/ext2_fs.h ". | ||
| 10 | "/usr/src/linux/include/linux/ecfs_fs.h", | ||
| 11 | |||
| 12 | "cp ". | ||
| 13 | "/usr/src/linux/include/linux/ext2_fs_sb.h ". | ||
| 14 | "/usr/src/linux/include/linux/ecfs_fs_sb.h", | ||
| 15 | |||
| 16 | "cp ". | ||
| 17 | "/usr/src/linux/include/linux/ext2_fs_i.h ". | ||
| 18 | "/usr/src/linux/include/linux/ecfs_fs_i.h", | ||
| 19 | |||
| 20 | "cp ". | ||
| 21 | "/usr/src/linux/include/linux/fs.h ". | ||
| 22 | "/usr/src/linux/include/linux/fs_ecfs.h " | ||
| 23 | ); | ||
| 24 | |||
| 25 | |||
| 26 | @sed = ( | ||
| 27 | "./repl.pl ". | ||
| 28 | "/usr/src/linux/include/linux/ecfs_fs.h", | ||
| 29 | |||
| 30 | "./repl.pl ". | ||
| 31 | "/usr/src/linux/include/linux/ecfs_fs_sb.h", | ||
| 32 | |||
| 33 | "./repl.pl ". | ||
| 34 | "/usr/src/linux/include/linux/ecfs_fs_i.h", | ||
| 35 | |||
| 36 | "./repl.pl ". | ||
| 37 | "/usr/src/linux/include/linux/fs_ecfs.h " | ||
| 38 | ); | ||
| 39 | |||
| 40 | |||
| 41 | foreach (@cp) { | ||
| 42 | print "$_\n"; | ||
| 43 | system($_); | ||
| 44 | } | ||
| 45 | |||
| 46 | foreach (@sed) { | ||
| 47 | print "$_\n"; | ||
| 48 | system($_); | ||
| 49 | } | ||
| 50 | |||
| 51 | |||
| 52 | |||
| 53 | |||
