Fixing user interface problems
This commit is contained in:
23
build.sh
23
build.sh
@@ -346,10 +346,29 @@ clean_project() {
|
||||
}
|
||||
|
||||
install_project() {
|
||||
print_status "Installing OTP project..."
|
||||
print_status "Building project before installation..."
|
||||
|
||||
# Build the project first (without version increment for install)
|
||||
print_status "Cleaning previous build..."
|
||||
make clean
|
||||
|
||||
print_status "Building OTP project for x86_64..."
|
||||
make CC=gcc ARCH=x86_64
|
||||
if [ $? -ne 0 ]; then
|
||||
print_error "Build failed"
|
||||
return 1
|
||||
fi
|
||||
print_success "Build completed successfully"
|
||||
|
||||
# Clean up object files after successful build
|
||||
print_status "Cleaning up object files..."
|
||||
rm -f src/*.o miniz/*.o microtar/src/*.o
|
||||
|
||||
# Now install
|
||||
print_status "Installing OTP project to system..."
|
||||
make install
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Installation completed"
|
||||
print_success "Installation completed - binary installed to /usr/local/bin/otp"
|
||||
else
|
||||
print_error "Installation failed"
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user