3 # Script to prepare source code and binary distribution files of rEFInd.
4 # By Rod Smith, 3/11/2012
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
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
21 # Go there are prepare a souce code zip file....
23 zip -9r refind-src-
$1.
zip refind-
$1
25 # Build the source code into a binary
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