summaryrefslogtreecommitdiff
path: root/scripts/package-all-acpi_call-tp_smapi
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2024-04-14 21:36:11 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2024-04-16 12:52:15 -0400
commit39faf006490e723bccf29b9469f73263e8556bc4 (patch)
treef8a9ba2eb30dde76cb783e94654687730ca444b3 /scripts/package-all-acpi_call-tp_smapi
parentb0bf555cd6fb52d072ef6e725ced301ab256f008 (diff)
acpi_call{,-dkms,-lts}:tp_smapi{,-lts}: rebuild against latest kernels
Diffstat (limited to 'scripts/package-all-acpi_call-tp_smapi')
-rwxr-xr-xscripts/package-all-acpi_call-tp_smapi8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/package-all-acpi_call-tp_smapi b/scripts/package-all-acpi_call-tp_smapi
index 8ff5f8a7a..8f617e05e 100755
--- a/scripts/package-all-acpi_call-tp_smapi
+++ b/scripts/package-all-acpi_call-tp_smapi
@@ -5,6 +5,7 @@ readonly KERNEL_VER=6.5.8
readonly KERNEL_LTS_VER=5.15.88
readonly CHROOT_NAMES=( armv7h i686 x86_64 )
readonly ABS_ROOT=/var/lib/archbuild/abslibre # no spaces
+readonly ABS_UPSTREAM=parabola
readonly PKG_DIRS=( ${ABS_ROOT}/libre/acpi_call{-dkms,,-lts} # -dkms first
${ABS_ROOT}/libre/tp_smapi{,-lts} ) # no trailing slashes
readonly PKGBUILDS=( ${PKG_DIRS[*]/%/\/PKGBUILD} )
@@ -17,10 +18,12 @@ Main()
local all_pkgs=()
local commit_msg=''
+ echo -e "\nupgrading chroots\n"
for chroot in ${CHROOT_NAMES[*]}
do sudo librechroot -n ${chroot} update || exit 1
done
+ echo -e "\nbuilding packages\n"
for pkg_dir in ${PKG_DIRS[*]}
do kver=$( [[ "${pkg_dir}" =~ -lts$ ]] && echo ${KERNEL_LTS_VER} || echo ${KERNEL_VER} )
pkgs=()
@@ -67,4 +70,7 @@ Main()
}
-Main
+if git pull $ABS_UPSTREAM master &> /dev/null
+then Main
+else echo "failed to synchronize abslibre VCS - is the working tree dirty?"
+fi