#!/bin/bash

SRCDIR=/cygdrive/c/chicken/bin/
TARGDIR=/cygdrive/c/programs/chicken

mkdir -p $TARGDIR/{include,lib,man/man3,share/html}

for f in \
include/avcall.h      \
include/callback.h    \
include/vacall.h      \
include/vacall_r.h    \
lib/libavcall.a	      \
lib/libavcall.la      \
lib/libcallback.a     \
lib/libcallback.la    \
lib/libvacall.a	      \
libavcall.a	      \
libavcall.la	      \
libcallback.a	      \
libcallback.la	      \
libvacall.a	      \
man/man3/avcall.3     \
man/man3/callback.3   \
man/man3/vacall.3     \
share/html/avcall.html \
share/html/callback.html \
share/html/vacall.html \
include/trampoline.h        \
include/trampoline_r.h	    \
lib/libtrampoline.a	    \
libtrampoline.a		    \
man/man3/trampoline.3	    \
man/man3/trampoline_r.3	    \
share/html/trampoline.html  \
share/html/trampoline_r.html \
;do
cp $SRCDIR/$f $TARGDIR/$f
done

