ahal / hunting-the-shmoo

My personal blog
0 stars 0 forks source link

blog/2014/mach-workflow/ #381

Open ahal opened 4 years ago

ahal commented 4 years ago

https://ahal.ca/blog/2014/mach-workflow/

ahal commented 4 years ago

Andreas Tolfsen wrote on 2014-03-04 11:39:54

This is pretty useful! Not knowing about this tool I did something very similar, but much cruder, by symlinking my current active mozconfig file to the configuration I want to build for:

~/dev/gecko % ls -l src/mozconfig
lrwxr-xr-x 1 ato staff 26 22 Feb 18:22 src/mozconfig -> ../mozconfig/desktop-debug
~/dev/gecko % ls -l mozconfig
lrwxr-xr-x 1 ato staff 33 22 Feb 17:46 mozconfig -> /Users/ato/dev/dotfiles/mozconfig
~/dev/gecko % ls -l ~/dev/dotfiles/mozconfig
total 32
-rw-r--r-- 1 ato staff 125 22 Feb 17:46 b2g
-rw-r--r-- 1 ato staff 225 22 Feb 17:46 common
-rw-r--r-- 1 ato staff 204 22 Feb 17:46 desktop-debug
-rw-r--r-- 1 ato staff 141 22 Feb 17:46 desktop-release

So when I want to build a desktop opt build instead I do:

% rm mozconfig
% ln -s ../mozconfig/desktop-release mozconfig

My mozconfig's, which may not be so great, are here: https://github.com/andreast...

ahal commented 4 years ago

ahal wrote on 2014-03-04 16:42:37

Cool. My workflow used to involve a lot of symlinking as well. Another one I've seen is putting a lot of the processing logic in the mozconfigs themselves (since they are just shell scripts).

ahal commented 4 years ago

Andreas Tolfsen wrote on 2014-03-05 12:24:11

That's an interesting idea. Potentially one could have it detect an environmental variable or something and have it automatically instate the right mozconfig for you.