Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update patch to squashfs-tools 4.4 #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Script to download squashfs-tools v4.3, apply the patches, perform a clean build, and install.
# Script to download squashfs-tools v4.4, apply the patches, perform a clean build, and install.

# If not root, perform 'make install' with sudo
if [ $UID -eq 0 ]
Expand All @@ -19,19 +19,19 @@ fi
cd $(dirname `readlink -f $0`)

# Download squashfs4.3.tar.gz if it does not already exist
if [ ! -e squashfs4.3.tar.gz ]
if [ ! -e squashfs4.4.tar.gz ]
then
wget https://downloads.sourceforge.net/project/squashfs/squashfs/squashfs4.3/squashfs4.3.tar.gz
wget https://downloads.sourceforge.net/project/squashfs/squashfs/squashfs4.4/squashfs4.4.tar.gz
fi

# Remove any previous squashfs4.3 directory to ensure a clean patch/build
rm -rf squashfs4.3
rm -rf squashfs4.4

# Extract squashfs4.3.tar.gz
tar -zxvf squashfs4.3.tar.gz
tar -zxvf squashfs4.4.tar.gz

# Patch, build, and install the source
cd squashfs4.3
cd squashfs4.4
patch -p0 < ../patches/patch0.txt
cd squashfs-tools
make && $SUDO make install
Loading