47f7f367a5f1a772705880c4a703ed39f8b8c0dc
[refind] / debian / debinstall
1 #!/bin/bash
2 set -e
3
4 BUILD_ROOT=$1
5
6 UNAMEARCH=`uname -m`
7 if [[ $UNAMEARCH == "x86_64" ]] ; then
8 EFIARCH=x64
9 elif [[ $UNAMEARCH == "i686" || $UNAMEARCH == "i586" || $UNAMEARCH == "i486" || $UNAMEARCH == "i386" ]] ; then
10 EFIARCH=ia32
11 else
12 EFIARCH=$UNAMEARCH
13 fi
14
15 mkdir -p $BUILD_ROOT/usr/share/refind/refind/
16
17 install -Dp -m0644 gptsync/gptsync_$EFIARCH.efi $BUILD_ROOT/usr/share/refind/refind/tools_$EFIARCH/gptsync_$EFIARCH.efi
18
19 echo "*** Exiting debinstall! ***"