aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/rr-fix
blob: 9b4e1bc009eec804f073e03038fe425e0d9ced75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# rr-cache will be in the build, one level above 'linux', need
# to arrange this to get under the tree if this is to be autodone
# by others.
if [ -d "../rr-cache" ]; then
  if [ -d ".git/rr-cache" ]; then
        cp -r ../rr-cache/* .git/rr-cache
  else
        cp -r ../rr-cache .git
  fi
fi
if [ -d "wrs/cfg/kernel-*-cache/rr-cache" ]; then
  if [ -d ".git/rr-cache" ]; then
        cp -r wrs/cfg/kernel-*-cache/rr-cache .git/rr-cache
  else
        cp -r wrs/cfg/kernel-*-cache/rr-cache .git
  fi
fi