added compression and moving build output to target dir
This commit is contained in:
15
src/build.sh
15
src/build.sh
@@ -4,6 +4,9 @@
|
||||
|
||||
# CONFIGURATION OPTIONS
|
||||
MAJORVERSION="140" # MAJOR firefox esr version
|
||||
MINORVERSION="${MAJORVERSION}.4.0" # Minor firefox version
|
||||
VERSION="${MINORVERSION}esr" # Whole Version put together
|
||||
DOWNLOAD="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz"
|
||||
BUILDPATH=$(realpath .) # Where to output build fragments
|
||||
OUTPUT="/var/www/$VERSION/" # Where to place built and zipped hashes and all that (ex. for file hosting)
|
||||
|
||||
@@ -27,7 +30,7 @@ echo Unzipping Source...
|
||||
tar -xJf "firefox-$VERSION.source.tar.xz"
|
||||
|
||||
|
||||
cd "firefox-$SUBVERSION/js/src"
|
||||
cd "firefox-$MINORVERSION/js/src"
|
||||
|
||||
echo Making Build Path...
|
||||
mkdir _build
|
||||
@@ -39,4 +42,12 @@ echo Configuring build...
|
||||
|
||||
echo Compiling...
|
||||
make
|
||||
make install
|
||||
make install
|
||||
|
||||
cd $BUILDPATH/bin/include
|
||||
|
||||
# Compress and get hash
|
||||
tar -cJf $VERSION.tar.xz mozjs-$MAJORVERSION/
|
||||
sha256sum $VERSION.tar.xz > $VERSION.tar.xz.sha256
|
||||
|
||||
mv $VERSION.tar.xz $VERSION.tar.xz.sha256 $OUTPUT
|
||||
Reference in New Issue
Block a user