|
|
1.1 root 1: #!/bin/sh
2: #
3: # copy those files that are necessary to use the libscg
4: # in UAE
5: #
6: # Patrick Ohly, 9.4.2000, GPL
7: #
8:
9: #
10: # check arguments
11: #
12: if [ $# -lt 1 ] || [ $# -gt 3 ] || [ "$1" == "--help" ]; then
13: echo "usage: $0 <cdrecord dir> <machine type (optional)>"
14: exit 0
15: fi
16: cdrecorddir=$1
17: if ! [ -d "$cdrecorddir" ] || ! [ -d "$cdrecorddir"/include ]; then
18: echo "$0: $cdrecorddir is not the cdrecord top level directory"
19: exit 10
20: fi
21: cdrecinc="$cdrecorddir"/include
22:
23: #
24: # try to find machine type
25: #
26: if [ "$2"x != x ]; then
27: machine="$2"
28: else
29: machine=`ls "$cdrecorddir"/libs`
30: if [ `echo "$machine" | wc -l` -gt 1 ]; then
31: echo "please specify your machine type - libscg was compiled for:"
32: echo "$machine"
33: exit 10
34: elif [ "$machine"x == x ]; then
35: echo "please compile cdrecord for your machine first"
36: exit 10
37: fi
38: fi
39:
40: #
41: # find our own directory
42: # hint: this file is in src
43: #
44: uaedir=`dirname "$0"`
45:
46: cp -r -f "$cdrecinc/btorder.h" "$cdrecinc/intcvt.h" "$cdrecinc/mconfig.h" "$cdrecinc/prototyp.h" "$cdrecinc/utypes.h" "$cdrecinc/scg" "$cdrecorddir/incs/$machine/xconfig.h" "$uaedir"/include
47: cp -f "$cdrecorddir/libs/$machine/libscg.a" "$cdrecorddir/libs/$machine/libschily.a" "$cdrecorddir/libs/$machine/libdeflt.a" "$uaedir"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.