parent
95c94ac3b5
commit
e29d665a10
|
@ -237,19 +237,19 @@ maybe_download_dlls() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_config_info() {
|
||||||
|
check_installed_programs
|
||||||
|
find_build_info
|
||||||
|
check_libraries
|
||||||
|
}
|
||||||
|
|
||||||
bootstrap() {
|
bootstrap() {
|
||||||
./$FACTOR_BINARY -i=$BOOT_IMAGE
|
./$FACTOR_BINARY -i=$BOOT_IMAGE
|
||||||
}
|
}
|
||||||
|
|
||||||
usage() {
|
|
||||||
echo "usage: $0 install|install-x11|update|quick-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
check_factor_exists
|
check_factor_exists
|
||||||
check_installed_programs
|
get_config_info
|
||||||
find_build_info
|
|
||||||
check_libraries
|
|
||||||
git_clone
|
git_clone
|
||||||
cd_factor
|
cd_factor
|
||||||
make_factor
|
make_factor
|
||||||
|
@ -259,9 +259,7 @@ install() {
|
||||||
}
|
}
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
check_installed_programs
|
get_config_info
|
||||||
find_build_info
|
|
||||||
check_libraries
|
|
||||||
git_pull_factorcode
|
git_pull_factorcode
|
||||||
make_clean
|
make_clean
|
||||||
make_factor
|
make_factor
|
||||||
|
@ -288,11 +286,16 @@ install_libraries() {
|
||||||
sudo apt-get install libc6-dev libfreetype6-dev libx11-dev xorg-dev glutg3-dev wget git-core git-doc rlwrap
|
sudo apt-get install libc6-dev libfreetype6-dev libx11-dev xorg-dev glutg3-dev wget git-core git-doc rlwrap
|
||||||
}
|
}
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo "usage: $0 install|install-x11|self-update|quick-update|update|bootstrap"
|
||||||
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
install) install ;;
|
install) install ;;
|
||||||
install-x11) install_libraries; install ;;
|
install-x11) install_libraries; install ;;
|
||||||
self-update) update; make_boot_image; bootstrap;;
|
self-update) update; make_boot_image; bootstrap;;
|
||||||
quick-update) update; refresh_image ;;
|
quick-update) update; refresh_image ;;
|
||||||
update) update; update_bootstrap ;;
|
update) update; update_bootstrap ;;
|
||||||
|
bootstrap) get_config_info; bootstrap ;;
|
||||||
*) usage ;;
|
*) usage ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue