blob: 22bd3e9149c5892a653ca3878a62b766af4f6ed2 (
plain)
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/sh
ROOT_DIR=build
#ROOT_DIR="$INSTALL_PREFIX"
function print_dir()
{
SED=`echo "sed 's|${ROOT_DIR}/||'"`
source=$1
dest=`echo $source | eval $SED `
echo "Source: ${source}/*.*; DestDir: {app}/$dest; Flags: ignoreversion" | \
sed 's|/|\\|g'
}
function traverse_tree()
{
my_dir_root="$1"
# echo "ROOT: $my_dir_root"
FILES=`ls -1d ${my_dir_root}/* | grep -v CVS`
if [ "x$FILES" != "x" ]; then
print_dir "$dir"
for dir in $FILES; do
test -d "$dir" && traverse_tree "$dir"
done
fi
}
traverse_tree "${ROOT_DIR}"
|