Skip to content

Commit

Permalink
Update doc scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtum committed Apr 8, 2024
1 parent 0eb8339 commit d9b965d
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 150 deletions.
6 changes: 3 additions & 3 deletions doc/generate-files.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ if (isBoostDir(cwdParentParent)) {
// Delete `self` from boost/libs
const selfDir = path.join(boostDir, 'libs', self)
console.log(`Deleting ${selfDir}`)
execSync(`rm -rf ${selfDir}`)
fs.rmSync(selfDir, { recursive: true, force: true })

// Copy contents of cwd to boost/libs/self
// const selfDirParent = path.join(boostDir, 'libs')
console.log(`Copying ${cwd} to ${selfDir}`)
execSync(`cp -r ${cwd} ${selfDir}`)
fs.cpSync(cwd, selfDir, {recursive: true})
}

/*
Expand Down Expand Up @@ -252,7 +252,7 @@ try {
}
if (tempDir) {
console.log(`Deleting temporary directory ${tempDir}`)
execSync(`rm -rf ${tempDir}`)
fs.rmSync(tempDir, { recursive: true, force: true })
}
console.log(`Generated documentation at ${mrDocsOutputDir}`)
process.exit(mrDocsExitCode)
Loading

0 comments on commit d9b965d

Please sign in to comment.