-
Notifications
You must be signed in to change notification settings - Fork 117
/
Copy pathcopyc86.sh
executable file
·39 lines (34 loc) · 936 Bytes
/
copyc86.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
#
# copyc86.sh - copy native ELKS C86 toolchain, header files and examples to ELKS /root
#
# Usage: ./copyc86.sh
#
set -e
if [ -z "$TOPDIR" ]
then
echo "ELKS TOPDIR= environment variable not set, run . env.sh"
exit
fi
if [ -z "$C86" ]
then
echo "C86= environment variable not set, run cd libc; . c86env.sh"
exit
fi
DEST=$TOPDIR/elkscmd/rootfs_template/root
cd $TOPDIR
cp -p libc/include/c86/*.h $DEST
cp -p libc/libc86.a $DEST
cd $C86
cp -p elks-bin/make $DEST
cp -p elks-bin/cpp86 $DEST
cp -p elks-bin/c86 $DEST
cp -p elks-bin/as86 $DEST
cp -p elks-bin/ld86 $DEST
cp -p elks-bin/ar86 $DEST
cp -p elks-bin/objdump86 $DEST
cp -p elks-bin/disasm86 $DEST
cp -p elks-bin/cpp86 $DEST
cd examples
cp -p *.c *.h $DEST
cp -p Makefile.elks $DEST/Makefile