Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vitasdk-update: Add a script to update an existing vitasdk installation #25

Merged
merged 3 commits into from
Jan 11, 2018

Conversation

xyzz
Copy link
Contributor

@xyzz xyzz commented Jan 9, 2018

This is to be installed into vitasdk by buildscripts.

The installation flow remains compatible (bootstrap-vitasdk, then install-all)
but now the user can run vitasdk-update to update the SDK and packages.

xyzz added 3 commits January 9, 2018 12:45
This is to be installed into vitasdk by buildscripts.

The installation flow remains compatible (bootstrap-vitasdk, then install-all)
but now the user can run vitasdk-update to update the SDK and packages.
$DIR/../vdpm $1
}

install_packages() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintaining two identical lists is annoying, maybe do a git checkout on https://github.com/vitasdk/packages/blob/master/travis_packages.sh?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can install this in buildscripts, but then it won't work out of the vdpm checkout (I'm not sure what you mean by do a git checkout of it)
also, given vitasdk/packages#28 (comment) we might want to build some stuff twice eventually, this shouldn't matter much now but I'm thinking how much the two lists will diverge eventually

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to do
git archive --remote=ssh://[email protected]/vitasdk/packages.git HEAD travis_packages.sh | tar -x but apparently GitHub doesn't support git-archive.

Maybe source https://raw.githubusercontent.com/vitasdk/packages/master/travis_packages.sh?

#!/bin/sh

get_download_link () {
curl "https://api.github.com/repos/vitasdk/autobuilds/releases" | grep "master" | grep "browser_download_url" | grep $1 | head -n 1 | cut -d '"' -f 4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub API's keeps being rate-limited from Travis, use this instead: https://github.com/vitasdk/vita-headers/blob/master/.travis.d/download_sdk.sh

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would add a dep on python

exit 1
fi

. $DIR/include/install-vitasdk.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that renamed headers and stubs will be duplicated when this script is executed.

@devnoname120 devnoname120 merged commit 9afe475 into vitasdk:master Jan 11, 2018
d3m3vilurr added a commit to d3m3vilurr/vita-headers that referenced this pull request Jan 14, 2018
d3m3vilurr added a commit to vitasdk/samples that referenced this pull request Jan 14, 2018
d3m3vilurr added a commit to vitasdk/vita-headers that referenced this pull request Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants