-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathmakefix
21 lines (21 loc) · 899 Bytes
/
makefix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# csrc/makefix
#
# Part of the CCNx distribution.
#
# Copyright (C) 2009 Palo Alto Research Center, Inc.
#
# This work is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published by the
# Free Software Foundation.
# This work is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.
#
Foo () {
grep '^[^/]*/[^/]*/[^/]*/[^/]*/[^/]*came from' MOVED | while read i j k l; do echo Fixup `dirname $i` `basename $i` ../../$l; done
echo
grep '^[^/]*/[^/]*/[^/]*/[^/]*came from' MOVED | while read i j k l; do echo Fixup `dirname $i` `basename $i` ../$l; done
echo
grep '^[^/]*/[^/]*/[^/]*came from' MOVED | while read i j k l; do echo Fixup `dirname $i` `basename $i` $l; done
}
Foo | grep -v -e Makefile -e README\