-#!/bin/sh
-set -o errexit
+#!/bin/bash
-# First argument of this script is the package name
+hvbuild()
+{
+ cd ${LFS_TMP}/${PACKAGE}
+ make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root
+ make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root install
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root
-make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root install
-
-cat > /etc/sysconfig/cdrecord << "EOF"
-#!/bin/sh
+ cat > /etc/sysconfig/cdrecord << "EOF"
+#!/bin/bash
# If you know exactly the device to use with cdrecord,
# enter it in this variable. If this variable is empty,
CDREC_DEVICE_DESC="CD-Writer+ 8200"
CDROM_DEVICE_DESC="CDR-8235"
EOF
-
-exit $?
+}