-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathrelease.sh
executable file
·57 lines (47 loc) · 2.12 KB
/
release.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
export BB_ARCHIVE_PATH=~/src/bb
export BUILD_PATH=Build
if [[ $# -gt 0 ]];
then
ARCHIVE_NAME=bb_$1.zip
else
ARCHIVE_NAME=bb_`git tag | tail -n 1`.zip
fi
echo $ARCHIVE_NAME
#SPEEDUP
source cbuild.sh -s -ia32
cp -vf $BUILD_PATH/bareboot/IA32/RELEASE_GCC5/FV/boot $BB_ARCHIVE_PATH/for\ HDD/ata/32/
rm -rf $BUILD_PATH/bareboot/
source cbuild.sh -s
cp -vf $BUILD_PATH/bareboot/X64/RELEASE_GCC5/FV/boot $BB_ARCHIVE_PATH/for\ HDD/ata/64/
#cp -vf $BUILD_PATH/bareboot/X64/RELEASE_GCC5/FV/Efildgpt $BB_ARCHIVE_PATH/for\ HDD/ata/64/
rm -rf $BUILD_PATH/bareboot/
source cbuild.sh -s -ia32 -b
cp -vf $BUILD_PATH/bareboot/IA32/RELEASE_GCC5/FV/boot $BB_ARCHIVE_PATH/for\ HDD/BlockIo/32/
rm -rf $BUILD_PATH/bareboot/
source cbuild.sh -s -b
cp -vf $BUILD_PATH/bareboot/X64/RELEASE_GCC5/FV/boot $BB_ARCHIVE_PATH/for\ HDD/BlockIo/64/
#cp -vf $BUILD_PATH/bareboot/X64/RELEASE_GCC5/FV/Efildgpt $BB_ARCHIVE_PATH/for\ HDD/BlockIo/64/
rm -rf $BUILD_PATH/bareboot/
# no SPEEDUP
source cbuild.sh -ia32
cp -vf $BUILD_PATH/bareboot/IA32/RELEASE_GCC5/FV/boot $BB_ARCHIVE_PATH/standard/ata/32/
#cp -vf $BUILD_PATH/bareboot/IA32/RELEASE_GCC5/FV/Efildr20 $BB_ARCHIVE_PATH/standard/ata/32/
rm -rf $BUILD_PATH/bareboot/
source cbuild.sh
cp -vf $BUILD_PATH/bareboot/X64/RELEASE_GCC5/FV/boot $BB_ARCHIVE_PATH/standard/ata/64/
#cp -vf $BUILD_PATH/bareboot/X64/RELEASE_GCC5/FV/Efildr20 $BB_ARCHIVE_PATH/standard/ata/64/
#cp -vf $BUILD_PATH/bareboot/X64/RELEASE_GCC5/FV/Efildgpt $BB_ARCHIVE_PATH/standard/ata/64/
rm -rf $BUILD_PATH/bareboot/
source cbuild.sh -b -ia32
cp -vf $BUILD_PATH/bareboot/IA32/RELEASE_GCC5/FV/boot $BB_ARCHIVE_PATH/standard/BlockIo/32/
#cp -vf $BUILD_PATH/bareboot/IA32/RELEASE_GCC5/FV/Efildr20 $BB_ARCHIVE_PATH/standard/BlockIo/32/
rm -rf $BUILD_PATH/bareboot/
source cbuild.sh -b
cp -vf $BUILD_PATH/bareboot/X64/RELEASE_GCC5/FV/boot $BB_ARCHIVE_PATH/standard/BlockIo/64/
#cp -vf $BUILD_PATH/bareboot/X64/RELEASE_GCC5/FV/Efildr20 $BB_ARCHIVE_PATH/standard/BlockIo/64/
#cp -vf $BUILD_PATH/bareboot/X64/RELEASE_GCC5/FV/Efildgpt $BB_ARCHIVE_PATH/standard/BlockIo/64/
rm -rf $BUILD_PATH/bareboot/
# archive
cd $BB_ARCHIVE_PATH/..
zip -rv $ARCHIVE_NAME bb -x "*.DS_Store"