summaryrefslogtreecommitdiff
path: root/scripts/local-build.sh
blob: f4381ef37295bde7d74d75013da8f3cfda61f4a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# Startdate: 2022-06-27
# Author: bgstack15
# Purpose: to start a dpkg-buildpackage locally, to ensure all the patches at least work.

set -e;

#####################################
# Load settings
# basically, dot-source the conf file.
test -z "${librewolf_dpkg_conf}" && export librewolf_dpkg_conf="$( find "$( dirname "${0}" )" -maxdepth 2 -name "prep-librewolf-dpkg.conf" -print 2>/dev/null | head -n1 )"
test ! -r "${librewolf_dpkg_conf}" && { echo "Unable to load config file, which should be named prep-librewolf-dpkg.conf. Aborted." 1>&2 ; exit 1 ; }
. "${librewolf_dpkg_conf}"

cd "${CI_PROJECT_DIR}/${firefox_version}/librewolf_${firefox_version}/" ; cp -pr ../debian .
echo "If this next step gets to the mozbuild steps, the asset build process was successful, and the git repo can be pushed to gitlab and a CI build can be started."
dpkg-buildpackage -b -us -uc
bgstack15