Cleaning up binary_loadlin.

This commit is contained in:
Daniel Baumann 2013-01-06 23:30:49 +01:00
parent 24463f688f
commit 7f0662cd50
1 changed files with 31 additions and 25 deletions

View File

@ -45,8 +45,8 @@ Create_lockfile .lock
case "${LB_ARCHITECTURES}" in case "${LB_ARCHITECTURES}" in
amd64|i386) amd64|i386)
if [ "${LB_BUILD_WITH_CHROOT}" = "true" ] case "${LB_BUILD_WITH_CHROOT}" in
then true)
# Checking depends # Checking depends
Check_package chroot/usr/lib/loadlin/loadlin.exe.gz loadlin Check_package chroot/usr/lib/loadlin/loadlin.exe.gz loadlin
@ -56,22 +56,28 @@ case "${LB_ARCHITECTURES}" in
# Installing depends # Installing depends
Install_package Install_package
_PREFIX="chroot"
;;
false)
_PREFIX=""
;;
esac
# Copying loadlin # Copying loadlin
mkdir -p binary/tools mkdir -p binary/tools
gunzip -c chroot/usr/lib/loadlin/loadlin.exe.gz > binary/tools/loadlin.exe gunzip -c "${_PREFIX}/usr/lib/loadlin/loadlin.exe.gz" > binary/tools/loadlin.exe
gunzip -c chroot/usr/share/doc/loadlin/manual.txt.gz > binary/tools/loadlin.txt gunzip -c "${_PREFIX}/usr/share/doc/loadlin/manual.txt.gz" > binary/tools/loadlin.txt
case "${LB_BUILD_WITH_CHROOT}" in
true)
# Saving cache # Saving cache
Save_cache cache/packages.binary Save_cache cache/packages.binary
# Removing depends # Removing depends
Remove_package Remove_package
else ;;
# Copying loadlin esac
mkdir -p binary/tools
gunzip -c /usr/lib/loadlin/loadlin.exe.gz > binary/tools/loadlin.exe
gunzip -c /usr/share/doc/loadlin/manual.txt.gz > binary/tools/loadlin.txt
fi
cat > binary/install/install.bat << EOF cat > binary/install/install.bat << EOF
\tools\loadlin.exe vmlinuz initrd=initrd.gz \tools\loadlin.exe vmlinuz initrd=initrd.gz
@ -85,12 +91,12 @@ cat > binary/install/gtk/install.bat << EOF
EOF EOF
fi fi
# Creating stage file
Create_stagefile .build/binary_loadlin
;; ;;
*) *)
Echo_warning "loadlin inclusion is set to true but not compatible with your architecture, ignoring." Echo_warning "loadlin inclusion is set to true but not compatible with your architecture, ignoring."
;; ;;
esac esac
# Creating stage file
Create_stagefile .build/binary_loadlin