Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

Commit

Permalink
fix up partial install
Browse files Browse the repository at this point in the history
  • Loading branch information
greyltc committed Dec 19, 2018
1 parent a68e976 commit da02d2c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#│   ├── matlabdata/
#│   ├── matlab_desktop_glnxa64_1535004605.enc*
#│   ├── matlab_desktop_glnxa64_1535004605.xml*
#│   ├── ... other encrypted toolbox/related files & folders go here
#│   ├── ... other toolbox/product files & folders go here
#├── bin/
#├── help/
#├── install*
Expand All @@ -35,9 +35,8 @@

## This PKGBUILD no longer attempts to activate the product.
## The user will be prompted to undertake their activation method of choice when the GUI is first run.
## Activation could be automated by running /opt/matlab/bin/activate_matlab.sh
## after this package is installed.
## That activation script could be called by matlab.install (a file that doesn't exist at this time)
## Activation could be automated by running /opt/matlab/bin/activate_matlab.sh after this package is installed.
## Activation could be further automated in matlab.install (a file that doesn't exist at this time)

# partial install
_partialinstall=false
Expand Down Expand Up @@ -94,12 +93,8 @@ prepare() {
sed -i "s,^# mode=,mode=silent," "${srcdir}/installer_input.txt"
sed -i "s,^# fileInstallationKey=,fileInstallationKey=${_fik}," "${srcdir}/installer_input.txt"

# install all productcts by default
sed -i "/^#product.${_product}$/ s/^#//" "${srcdir}/installer_input.txt"

if [ ! -z ${_products+isSet} ]; then
msg2 'Building a package with a subset of the licensed products.'
sed -i "s,^product,#product," "${srcdir}/installer_input.txt"
for _product in "${_products[@]}"; do
sed -i "/^#product.${_product}$/ s/^#//" "${srcdir}/installer_input.txt"
done
Expand Down

0 comments on commit da02d2c

Please sign in to comment.