fix_include_guards.sh 256 B

1234567891011
  1. #!/bin/sh
  2. for i in "$@"; do
  3. NAME=$(echo $i | sed "s/[\/\.]/_/g;s/^/SUPERTUX_/" | tr [a-z] [A-Z])
  4. echo $i $NAME
  5. sed -i "s/^#ifndef HEADER_.*/#ifndef HEADER_$NAME/" $i;
  6. sed -i "s/^#define HEADER_.*/#define HEADER_$NAME/" $i;
  7. done
  8. # EOF #