1 sage 1.1 #!/bin/bash
2 #
3 # Build include files
4 #
5 #PROOT=/home/markus/src/pegasus
6 #BROOT=/home/markus/src/tmp
7 PROOT=$1
8 BROOT=$2
|
9 sage 1.3 LISTLOC=$3
|
10 sage 1.1
|
11 sage 1.3 echo "Copy include files from "$PROOT" into "$BROOT" - list in "$LISTLOC
12
13 rm -f $LISTLOC/rpm_pegasus_include_files
|
14 sage 1.1 pushd $PROOT/src
15 list=`find Pegasus -iname '*.h'`
16 popd
17 for i in $list;do
18 j=`dirname $i`;
|
19 sage 1.3 echo "/usr/include/"$i >> $LISTLOC/rpm_pegasus_include_files
|
20 sage 1.1 mkdir -p $BROOT/usr/include/$j
21 cp $PROOT/src/$i $BROOT/usr/include/$i
22 done;
|