diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2011-12-02 19:34:33 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2011-12-02 19:34:33 +0400 |
commit | 49ba55b10045969d9dba89ee11a53ca2d35d8f7f (patch) | |
tree | cd45bcea2ec3425cfb6ead354afec20813136d1e /tools | |
parent | f44d0b90442d9a1dc7457924f827722fc3a7c440 (diff) | |
parent | 3ebbdc6320a6e11e4c74c81ee700f77762931a21 (diff) |
Merge branch 'v0.6'
Conflicts:
src/node_version.h
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doctool/doctool.js | 1 | ||||
-rw-r--r-- | tools/msvs/msi/product.wxs | 32 | ||||
-rw-r--r-- | tools/msvs/npm/npmrc | 1 |
3 files changed, 31 insertions, 3 deletions
diff --git a/tools/doctool/doctool.js b/tools/doctool/doctool.js index da31445fe13..634d82c9218 100644 --- a/tools/doctool/doctool.js +++ b/tools/doctool/doctool.js @@ -110,6 +110,7 @@ if (argc > 3) { // go markdown. html = convertData(data); filename = path.basename(filename, '.markdown'); + output = output.replace(/{{filename}}/g, filename); if (filename != "_toc" && filename != "index") { if (data) { diff --git a/tools/msvs/msi/product.wxs b/tools/msvs/msi/product.wxs index 4071b79da67..d924a4dfef5 100644 --- a/tools/msvs/msi/product.wxs +++ b/tools/msvs/msi/product.wxs @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> - <?define sourcedir="$(var.ProjectDir)..\..\..\$(var.Configuration)\" ?> + <?define repoDir="$(var.ProjectDir)..\..\..\" ?> + <?define sourcedir="$(var.repoDir)\$(var.Configuration)\" ?> <Product Id="cc6c176e-e26c-48ec-8970-f58bd1d046cf" Name="node.js" @@ -17,10 +18,22 @@ <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="NodeRoot" Name="nodejs"> - <Directory Id="NodeModulesFolder" Name="node_modules" /> + <Directory Id="NodeModulesFolder" Name="node_modules"> + <Directory Id="NPMFolder" Name="npm"> + <Component Id="npmrc" Guid="55B2B03F-8F32-4D62-A54A-FA428615591D"> + <File Id="filenpmrc" KeyPath="yes" Source="$(var.repoDir)\tools\msvs\npm\npmrc" /> + </Component> + </Directory> + </Directory> <Component Id="nodeexe" Guid="AEC0F08E-89B3-4C35-A286-8DB8598597F2"> <File Id="filenodeexe" KeyPath="yes" Source="$(var.sourcedir)\node.exe" /> - <Environment Id="Environment" + <Environment Id="npm_env" + Action="set" + Name="PATH" + Part="last" + System="yes" + Value="[AppDataFolder]npm" /> + <Environment Id="node_env" Action="set" Name="PATH" Part="last" @@ -37,11 +50,24 @@ <?endif?> </Directory> </Directory> + <Directory Id="AppDataFolder"> + <Directory Id="NPMAppData" Name="npm"> + <Component Id="npmappdata_folder" Guid="994B1F7F-60CD-4792-A96D-63BC7FFF29BF" Permanent="yes"> + <RegistryKey Action="none" Key="dummy" Root="HKCU" > + <RegistryValue Type="integer" Value="1" KeyPath="yes" /> + </RegistryKey > + <CreateFolder/> + <RemoveFolder Id="RemoveAppData" On="uninstall" /> + </Component> + </Directory> + </Directory> </Directory> <ComponentGroup Id="allfiles"> <ComponentRef Id="nodeexe"/> <ComponentRef Id="npmcmd"/> + <ComponentRef Id="npmrc" /> + <ComponentRef Id="npmappdata_folder" /> <ComponentGroupRef Id="NPMFiles" /> <?if $(var.Configuration) = Debug ?> <ComponentRef Id="nodepdb"/> diff --git a/tools/msvs/npm/npmrc b/tools/msvs/npm/npmrc new file mode 100644 index 00000000000..cbea6748dc1 --- /dev/null +++ b/tools/msvs/npm/npmrc @@ -0,0 +1 @@ +prefix=${APPDATA}\npm |