You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/profiles/templates/3.1/2_ac_install_merge/sys-apps/calculate-utilities/50-post-setup-package

32 lines
861 B

# vim: set syntax=sh
#
# Copyright 2014 Calculate Ltd. http://www.calculate-linux.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
CL_UPDATE_PROG=/usr/sbin/cl-core-setup
post_setup_package() {
if [[ -f /var/lib/calculate/-postmerge ]] && check_skip
then
OLDIFS=$IFS
IFS=/
while read category pkgname;do
[[ -n $pkgname ]] || continue
IFS=$OLDIFS
CTARGET=${CTARGET} GCC_CONFIG_VER=${GCC_CONFIG_VER} ${CL_UPDATE_PROG} --no-progress --pkg-name $pkgname --pkg-category $category --pkg-path "/"
IFS=/
done < <(sort /var/lib/calculate/-postmerge | uniq)
IFS=$OLDIFS
fi
rm -f /var/lib/calculate/-postmerge
}
post_pkg_postinst() {
post_setup_package
}