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.4 #LISTLOC=$3
10 LISTLOC=/usr/src/packages/BUILD/pegasus-1.0
|
11 sage 1.1
|
12 sage 1.3 echo "Copy include files from "$PROOT" into "$BROOT" - list in "$LISTLOC
13
14 rm -f $LISTLOC/rpm_pegasus_include_files
|
15 sage 1.1 pushd $PROOT/src
16 list=`find Pegasus -iname '*.h'`
17 popd
18 for i in $list;do
19 j=`dirname $i`;
|
20 sage 1.3 echo "/usr/include/"$i >> $LISTLOC/rpm_pegasus_include_files
|
21 sage 1.1 mkdir -p $BROOT/usr/include/$j
22 cp $PROOT/src/$i $BROOT/usr/include/$i
23 done;
|