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

Add command "resetmods" to clean precompilates #98

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

Conversation

GWRon
Copy link
Contributor

@GWRon GWRon commented Jul 21, 2020

./bmk resetmods -v audio

results in

  Resetting audio.modloader
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/modloader.release.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/modloader.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/modloader.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/modloader.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/modloader.release.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/modloader.debug.linux.x64.i2
  Resetting audio.soloudaudio
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/soloudaudio.debug.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/soloudaudio.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/soloudaudio.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/soloudaudio.release.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/soloudaudio.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/soloudaudio.release.linux.x64.i
  Resetting audio.soloudaudiosdl
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/soloudaudiosdl.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/soloudaudiosdl.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/soloudaudiosdl.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/soloudaudiosdl.debug.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/soloudaudiosdl.release.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/soloudaudiosdl.release.linux.x64.i
  Resetting audio.soloudsdl
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/soloudsdl.release.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/soloudsdl.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/soloudsdl.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/soloudsdl.debug.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/soloudsdl.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/soloudsdl.release.linux.x64.a
  Resetting audio.soloud
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/filter/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/core/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/ay/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/speech/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/tedsid/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/monotone/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/wav/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/vic/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/noise/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/vizsn/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/openmpt/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/sfxr/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/c_api/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/jack/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/nosound/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/wasapi/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/portaudio/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/alsa/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/miniaudio/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/null/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/coreaudio/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/winmm/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/openal/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/sdl2_static/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.release.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.release.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.debug.linux.x64.i2
  Resetting audio.libopenmpt
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/openmpt/common/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/openmpt/soundlib/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/openmpt/soundlib/plugins/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/openmpt/soundlib/plugins/dmo/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/openmpt/libopenmpt/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/openmpt/sounddsp/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/libopenmpt.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/libopenmpt.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/libopenmpt.release.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/libopenmpt.release.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/libopenmpt.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/libopenmpt.debug.linux.x64.i2
  Resetting audio.soloudminiaudio
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/soloudminiaudio.release.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/soloudminiaudio.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/soloudminiaudio.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/soloudminiaudio.debug.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/soloudminiaudio.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/soloudminiaudio.release.linux.x64.a
  Resetting audio.soloudaudiominiaudio
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/soloudaudiominiaudio.debug.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/soloudaudiominiaudio.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/soloudaudiominiaudio.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/soloudaudiominiaudio.release.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/soloudaudiominiaudio.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/soloudaudiominiaudio.release.linux.x64.i

@GWRon
Copy link
Contributor Author

GWRon commented Oct 25, 2022

Little bump ... think it is a lightweight change but nifty cleanup feature

@GWRon
Copy link
Contributor Author

GWRon commented Nov 10, 2024

I bump this again ...

I still use this feature at least once a month ... it is super useful to avoid rebuilding a lot of modules (which eg have dependencies to modules you are changing).
For now your only way to enforce recompiling some modules is to do a manual "rebuild" of these modules. But this requires you to know which module is affected.

With the "resetmods" parameter I simply clean "brl" or all or whatever modules I think are affected. When then doing a build bmk will autocompile all required modules. Which most of the time is way less than "rebuilding everything" (rebuild modules).

Also "resetmods" helps to shrink package size when transporting a specific "setup" to a new OS (eg copy your "mods folder" from Linux to Windows - no need to copy the linux prebuilds).

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.

1 participant