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
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).
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
23 # Go there and prepare a souce code zip file....
25 zip -9r refind-src-
$1.
zip refind-
$1
27 # Build the IA32 binaries
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/
37 # Build the X64 binaries
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
50 # Prepare the final .zip file and clean up
51 zip -9r ..
/refind-bin-
$1.
zip refind-bin-
$1