Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Add header generation to the puppetfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrittervg committed Jun 3, 2021
1 parent 4dc91a5 commit a45b063
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ce.pp
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,31 @@
ensure => latest,
provider => hg,
source => 'https://hg.mozilla.org/mozilla-central/',
} ->

# We do it with a -tmp directory we replace in case the headers

file { '/mozilla-libs/':
ensure => 'directory',
} ->

file { '/mozilla-libs-tmp/':
ensure => 'directory',
} ->

exec { 'headers-1':
command => '/civet-docker/get_mozbuild_exports.py -i /mozilla-central/ -o /mozilla-libs-tmp/',
} ->

exec { 'headers-2':
command => '/civet-docker/get_other_exports.py -i /mozilla-central/ -o /mozilla-libs-tmp/',
} ->

exec { 'headers-3':
command => '/usr/bin/rm -r /mozilla-libs/ && mv /mozilla-libs-tmp/ /mozilla-libs/'
}


# ==================================================

vcsrepo { '/civet-docker':
Expand Down

0 comments on commit a45b063

Please sign in to comment.