]> code.delx.au - refind/blob - mkdistrib
Modified install.sh script to include "--usedefault" and "--drivers"
[refind] / mkdistrib
1 #!/bin/bash
2 #
3 # Script to prepare source code and binary distribution files of rEFInd.
4 # By Rod Smith, 3/11/2012
5 # Updated 11/8/2012 to do more things automatically
6 #
7 # Usage: ./mkdistrib version
8 # where "version" is a version number
9 # MUST be run from an x86-64 system, on which the TianoCore build
10 # includes both X64 and IA32 build support ("TARGET_ARCH = IA32 X64"
11 # in Conf/target.txt).
12
13
14 StartDir=`pwd`
15
16 make clean
17
18 # Prepare a place and copy files there....
19 mkdir -p ../snapshots/$1/refind-$1/icons
20 cp --preserve=timestamps icons/*icns ../snapshots/$1/refind-$1/icons/
21 cp -a docs images include EfiLib libeg refind filesystems install.sh CREDITS.txt NEWS.txt BUILDING.txt COPYING.txt LICENSE.txt README.txt refind.inf Make.tiano Make.common Makefile refind.conf-sample ../snapshots/$1/refind-$1
22
23 # Go there and prepare a souce code zip file....
24 cd ../snapshots/$1/
25 zip -9r refind-src-$1.zip refind-$1
26
27 # Build the IA32 binaries
28 cd refind-$1
29 ARCH=ia32 make
30 ARCH=ia32 make fs
31 mkdir -p refind-bin-$1/refind/drivers_ia32
32 cp --preserve=timestamps drivers/*_ia32.efi refind-bin-$1/refind/drivers_ia32/
33 cp --preserve=timestamps filesystems/LICENSE*txt refind-bin-$1/refind/drivers_ia32/
34 cp refind/refind_ia32.efi refind-bin-$1/refind/refind_ia32.efi
35 cp refind/refind_ia32.efi $StartDir/
36
37 # Build the X64 binaries
38 make clean
39 make
40 make fs
41 mkdir -p refind-bin-$1/refind/drivers_x64
42 cp -a icons refind-bin-$1/refind/
43 cp --preserve=timestamps drivers/*_x64.efi refind-bin-$1/refind/drivers_x64/
44 cp --preserve=timestamps filesystems/LICENSE*txt refind-bin-$1/refind/drivers_x64/
45 cp --preserve=timestamps refind.conf-sample refind-bin-$1/refind/
46 cp refind/refind_x64.efi refind-bin-$1/refind/refind_x64.efi
47 cp refind/refind_x64.efi $StartDir
48 cp -a COPYING.txt LICENSE.txt README.txt docs CREDITS.txt install.sh refind-bin-$1
49
50 # Prepare the final .zip file and clean up
51 zip -9r ../refind-bin-$1.zip refind-bin-$1
52 cd ..
53 rm -r refind-$1
54 cd $StartDir