Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Side by Side Diff: debian.chrome/scripts/link-headers

Issue 646032: Rename config to match naming convention. (Closed)
Patch Set: Send mail Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « debian.chrome/scripts/control-create ('k') | debian.chrome/scripts/misc/getabis » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash -e
2
3 . debian/debian.env
4
5 hdrdir="$1"
6 symdir="$2"
7 flavour="$3"
8
9 echo "Symlinking and copying headers for $flavour..."
10
11 excludes="( -path ./debian -prune -o -path ./${DEBIAN} -prune -o -path ./.git ) -prune -o"
12
13 (
14 find . $excludes -type f \
15 \( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Kbuild*' -o \
16 -name '*.sh' -o -name '*.pl' -o -name '*.lds' \) -print
17 find ./include ./scripts -name .gitignore -prune -o -type f -print
18 find ./include -mindepth 1 -maxdepth 1 $excludes -type d -print
19 ) | (
20 while read file; do
21 dir=$file
22 lastdir=$file
23
24 if [ -e "$hdrdir/$file" -o -L "$hdrdir/$file" ]; then
25 continue
26 fi
27
28 while [ ! -e "$hdrdir/$dir" -a ! -L "$hdrdir/$dir" ]; do
29 lastdir=$dir
30 dir=`dirname $dir`
31 done
32 # If the last item to exist is a symlink we assume all is good
33 if [ ! -L "$hdrdir/$dir" ]; then
34 # Turns things like "./foo" into "../"
35 deref="`echo -n $lastdir | sed -e 's/^\.//' -e's,/[^/]*,../,g'`"
36 item="`echo -n $lastdir | sed -e 's/^\.\///'`"
37 ln -s $deref$symdir/$item $hdrdir/$item
38 fi
39 done
40 )
41
42 exit
OLDNEW
« no previous file with comments | « debian.chrome/scripts/control-create ('k') | debian.chrome/scripts/misc/getabis » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698