#!/bin/bash
BASE=~/mesa
SOURCE=$BASE/Mesa-7.7.1
#DEST=$BASE/libglw-mesa-arb_i386/debian/usr
DEST=$BASE/libglw-mesa-arb_amd64/debian/usr

copyfile() {
    SSUB=$1
    DSUB=$2
    FILE=$3

    mkdir -p $DEST/$DSUB
    cp -pv $SOURCE/$SSUB/$FILE $DEST/$DSUB
}

copyfile lib lib libGLw.so
copyfile lib lib libGLw.so.1
copyfile lib lib libGLw.so.1.0.0

copyfile src/glw include/GL GLwDrawA.h  
copyfile src/glw include/GL GLwDrawAP.h 
copyfile src/glw include/GL GLwMDrawA.h 
copyfile src/glw include/GL GLwMDrawAP.h

