summaryrefslogtreecommitdiff
path: root/storage/ndb/tools/make-links.sh
blob: e0c4f55986e9fa97eec327830fef7ecde9b53903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh

# 1 - Link top src
# 2 - Link dst

if [ $# -lt 2 ]
then
    exit 0
fi

name=`basename $2`
files=`find $1/$name -type f -name '*.h*'`

for i in $files
do
    ln -s $i $2/`basename $i`
done