Blame view

RIOT/cpu/sam0_common/include/cmsis/samr21/rename-includes.sh 484 Bytes
fb11e647   vrobic   reseau statique a...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  #!/bin/bash
  
  # The following is needed to compare component/component_ac.h with component/ac.h
  # The latter is the newer names as used by ASF.
  # This can be used to prepare a update of ASF and still have GIT history.
  
  cd include || { exit 1; }
  pushd component
  for f in component_*.h
  do
      F=${f##*_}
      git mv $f $F
  done
  popd
  
  pushd instance
  for f in instance_*.h
  do
      F=${f##*_}
      git mv $f $F
  done
  popd
  
  pushd pio
  for f in pio_*.h
  do
      F=${f##*_}
      git mv $f $F
  done
  popd