akaros/scripts/plan9user/fixincludes
<<
>>
Prefs
   1#!/bin/sh
   2# N.B. Preserve blank line we match against so this is idempotent.
   3sed -i '/^#include/,/^$/c\
   4#include <stdlib.h>\
   5#include <stdio.h>\
   6#include <parlib.h>\
   7#include <unistd.h>\
   8#include <signal.h>\
   9#include <fcntl.h>\
  10#include <error.h>
  11#include <nixip.h>\
  12#include <ndb.h>\
  13#include <fcall.h>\
  14' $1
  15