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

developer mode fixes and cleanups #203

Open
wants to merge 2 commits into
base: Beta
Choose a base branch
from

Conversation

gfoury
Copy link
Contributor

@gfoury gfoury commented Feb 27, 2016

The library directory needs to be checked after arguments are parsed, since -developer can affect it.

If we are in developer mode, we need to explicitly pick a place to extract tables. There are three obvious choices. See code.

Look in ${gToolPath} for downloaded zips, since that's where a git clone/full download should put them.

Only delete zip files if we downloaded them. This keeps git from being annoyed at missing zip files.

Tested as

  • standalone script (traditional behavior)
  • without -developer (traditional behavior)
  • with -developer (shiny clean directory :–)

The library directory needs to be checked after arguments are parsed,
since -developer can affect it.

If we are in developer mode, we need to explicitly pick a place to
extract tables. There are three obvious choices. See code.

Look in ${gToolPath} for downloaded zips, since that's where a git
clone/full download puts them.

Only delete zip files if we downloaded them. This keeps git from being
annoyed at missing zip files.
@Piker-Alpha
Copy link
Owner

Yes. I should have moved _checkLibraryDirectory but forgot to do it. Thank you for catching this error.

And ACPI it is. I already made the changes in my local tree and I will commit it after I some test runs.

But I don't think that we have to change ${gPath} into ${gToolPath} because this are two different directories, and we don't (try to) remove the ZIP file from the tools directory.

All in all good changes, but now freqVectorsEdit.sh is broken, since the script also need to know where the configuration files are. I guess that we could add a preference for it, and if the preference isn't there, and the old ~/Library/ssdtPRGen path is unusable... then we have to download the configuration files.

Edit: ssdtPRGen.sh v18.2 committed. Please note that we need to verify the -develop, -extract and -custom arguments (in the mix).

@gfoury
Copy link
Contributor Author

gfoury commented Feb 28, 2016

OK, I will test.

@gfoury
Copy link
Contributor Author

gfoury commented Feb 28, 2016

I wish that GitHub would notify me by email when a message has been edited. I missed this earlier.

I will look at freqVectorsEdit.sh too, which I have been meaning to test/use again.

@cecekpawon
Copy link

Whoops, i submitted duplicate issues here before reading this 😹

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.

3 participants