Last active
June 9, 2016 21:51
-
-
Save JLHwung/06717b8a368ad6c315e4bee6df31a843 to your computer and use it in GitHub Desktop.
Migrate packages installed in old version of basicTeX to the new version of basicTeX on OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/zsh | |
oldVersion=2015basic | |
newVersion=2016basic | |
needInstalled=`comm -23 <(/usr/local/texlive/$oldVersion/bin/universal-darwin/tlmgr list --only-installed | sed 's/:.*$//') <(/usr/local/texlive/$newVersion/bin/universal-darwin/tlmgr list --only-installed | sed 's/:.*$//') | awk -F ' ' '{print $2}' ORS=' '` | |
eval "sudo tlmgr install $needInstalled $@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment