]> code.delx.au - refind/blob - mkdistrib
Fixed bug that caused incorrect scroll arrow to be displayed sometimes.
[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 #
6 # Usage: ./mkdistrib version
7 # where "version" is a version number
8 # MUST be run from an x86-64 system, on which the current IA32 build
9 # (refind_ia32.efi) is already present in the same directory as this script
10
11
12 StartDir=`pwd`
13
14 make clean
15
16 # Prepare a place and copy files there....
17 mkdir -p ../snapshots/$1/refind-$1/icons
18 cp --preserve=timestamps icons/*icns ../snapshots/$1/refind-$1/icons/
19 cp -a docs images include libeg refind install.sh CREDITS.txt NEWS.txt BUILDING.txt COPYING.txt LICENSE.txt README.txt Make.common Makefile refind.conf-sample ../snapshots/$1/refind-$1
20
21 # Go there are prepare a souce code zip file....
22 cd ../snapshots/$1/
23 zip -9r refind-src-$1.zip refind-$1
24
25 # Build the source code into a binary
26 cd refind-$1
27 make
28 mkdir -p refind-bin-$1/refind
29 cp -a icons refind-bin-$1/refind/
30 cp --preserve=timestamps refind.conf-sample refind-bin-$1/refind/
31 cp refind/refind_x64.efi refind-bin-$1/refind/refind_x64.efi
32 cp $StartDir/refind_ia32.efi refind-bin-$1/refind/
33 cp -a COPYING.txt LICENSE.txt README.txt docs CREDITS.txt install.sh refind-bin-$1
34 zip -9r ../refind-bin-$1.zip refind-bin-$1
35 cd ..
36 rm -r refind-$1
37 cd $StartDir