akaros/scripts/fixincludes
<<
>>
Prefs
   1#!/bin/sh
   2# N.B. Preserve blank line we match against so this is idempotent.
   3sed -i '/^#include/,/^$/c\
   4#include <vfs.h>\
   5#include <slab.h>\
   6#include <kmalloc.h>\
   7#include <kref.h>\
   8#include <string.h>\
   9#include <stdio.h>\
  10#include <assert.h>\
  11#include <error.h>\
  12#include <cpio.h>\
  13#include <pmap.h>\
  14#include <smp.h>\
  15#include <ip.h>\
  16' $1
  17