mirror of
https://github.com/kevin-leptons/lfs-auto.git
synced 2026-01-25 08:23:28 +00:00
37 lines
629 B
Bash
Executable File
37 lines
629 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# using : build lfs-bootscripts
|
|
# author : kevin.leptons@gmail.com
|
|
|
|
# libs
|
|
source configuration.sh
|
|
source util.sh
|
|
|
|
# veriables
|
|
package_name="sys.lfs-bootscripts"
|
|
source_file="../lfs-bootscripts-20150222.tar.bz2"
|
|
source_dir="lfs-bootscripts-20150222"
|
|
|
|
# step.verify
|
|
step_verify() {
|
|
[ -f $source_file ]
|
|
}
|
|
|
|
# step.extract
|
|
step_extract() {
|
|
tar -vxf $source_file
|
|
}
|
|
|
|
# step.install
|
|
step_install() {
|
|
make install
|
|
}
|
|
|
|
# run
|
|
cd $root_system_sources
|
|
run_step "$package_name.verify" step_verify
|
|
run_step "$package_name.extract" step_extract
|
|
cd $source_dir
|
|
run_step "$package_name.install" step_install
|
|
exit 0
|