-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extracted backend and tools to own repos
- Loading branch information
1 parent
acc14ef
commit 375942b
Showing
1,048 changed files
with
2,269 additions
and
98,204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
Param ([Parameter(Mandatory=$True)] [string]$NewVersion) | ||
#Sets a new version number in all relevant locations | ||
$ErrorActionPreference = "Stop" | ||
$ScriptDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent | ||
|
||
[System.IO.File]::WriteAllText("$ScriptDir\VERSION", $NewVersion) | ||
|
||
(Get-Content "$ScriptDir\src\GlobalAssemblyInfo.cs" -Encoding UTF8) ` | ||
-replace 'AssemblyVersion\(".*"\)', ('AssemblyVersion("' + $NewVersion + '")') | | ||
Set-Content "$ScriptDir\src\GlobalAssemblyInfo.cs" -Encoding UTF8 | ||
(Get-Content "$ScriptDir\src\Frontend\OneGet\provider.manifest" -Encoding UTF8) ` | ||
-replace 'version=".*" versionScheme="multipartnumeric"', ('version="' + $NewVersion + '.0" versionScheme="multipartnumeric"') | | ||
Set-Content "$ScriptDir\src\Frontend\OneGet\provider.manifest" -Encoding UTF8 | ||
function SearchAndReplace($FilePath, $PatternLeft, $PatternRight) | ||
{ | ||
(Get-Content "$ScriptDir\$FilePath" -Encoding UTF8) ` | ||
-replace "$PatternLeft.*$PatternRight", ($PatternLeft.Replace('\', '') + $NewVersion + $PatternRight.Replace('\', '')) | | ||
Set-Content "$ScriptDir\$FilePath" -Encoding UTF8 | ||
} | ||
|
||
(Get-Content "$ScriptDir\doc\Backend.Doxyfile" -Encoding UTF8) ` | ||
-replace 'PROJECT_NUMBER = ".*"', ('PROJECT_NUMBER = "' + $NewVersion + '"') | | ||
Set-Content "$ScriptDir\doc\Backend.Doxyfile" -Encoding UTF8 | ||
(Get-Content "$ScriptDir\doc\Frontend.Doxyfile" -Encoding UTF8) ` | ||
-replace 'PROJECT_NUMBER = ".*"', ('PROJECT_NUMBER = "' + $NewVersion + '"') | | ||
Set-Content "$ScriptDir\doc\Frontend.Doxyfile" -Encoding UTF8 | ||
(Get-Content "$ScriptDir\doc\Tools.Doxyfile" -Encoding UTF8) ` | ||
-replace 'PROJECT_NUMBER = ".*"', ('PROJECT_NUMBER = "' + $NewVersion + '"') | | ||
Set-Content "$ScriptDir\doc\Tools.Doxyfile" -Encoding UTF8 | ||
[System.IO.File]::WriteAllText("$ScriptDir\VERSION", $NewVersion) | ||
SearchAndReplace doc\Doxyfile -PatternLeft 'PROJECT_NUMBER = "' -PatternRight '"' | ||
SearchAndReplace src\GlobalAssemblyInfo.cs -PatternLeft 'AssemblyVersion\("' -PatternRight '"\)' | ||
SearchAndReplace src\OneGet\provider.manifest -PatternLeft 'version="' -PatternRight '" versionScheme="multipartnumeric"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
set -e | ||
cd `dirname $0` | ||
|
||
printf $1 > VERSION | ||
sed -b -i "s/PROJECT_NUMBER = \".*\"/PROJECT_NUMBER = \"$1\"/" doc/Doxyfile | ||
sed -b -i "s/AssemblyVersion\(\".*\"\)/AssemblyVersion\(\"$1\"\)/" src/GlobalAssemblyInfo.cs | ||
sed -b -i "s/version=\".*\" versionScheme=\"multipartnumeric\"/version=\"$1\" versionScheme=\"multipartnumeric\"/" src/OneGet/provider.manifest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Param ([Switch]$Deploy, [Switch]$Machine) | ||
$ErrorActionPreference = "Stop" | ||
|
||
$RootDir = $(Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) | ||
pushd $RootDir | ||
|
||
src\build.ps1 | ||
doc\build.ps1 | ||
release\build.ps1 | ||
powershell\build.ps1 | ||
|
||
if ($Deploy) { | ||
if ($Machine) { | ||
build\Bootstrap\zero-install.exe --feed="$RootDir\release\ZeroInstall-$(Get-Content ..\VERSION).xml" maintenance --batch --machine | ||
} else { | ||
build\Bootstrap\zero-install.exe --feed="$RootDir\release\ZeroInstall-$(Get-Content ..\VERSION).xml" maintenance --batch | ||
} | ||
} | ||
|
||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/sh | ||
#Compiles the source code. | ||
set -e | ||
cd `dirname $0` | ||
|
||
#Create debug build | ||
src/build.sh | ||
doc/build.sh | ||
release/build.sh |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
PROJECT_NAME = "Zero Install Frontend API" | ||
PROJECT_NUMBER = "2.13.3" | ||
|
||
INPUT = main.md ../src | ||
USE_MDFILE_AS_MAINPAGE = main.md | ||
STRIP_FROM_PATH = ../src | ||
RECURSIVE = YES | ||
EXCLUDE_PATTERNS = */UnitTests/* */Properties/* */obj/* */bin/* *.NativeMethods.cs */gtk-gui/* | ||
TAGFILES = nanobyte-common.tag=http://nano-byte.de/common/api/ 0install-backend.tag=http://0install.de/api/backend/ | ||
|
||
OUTPUT_DIRECTORY = ../build/Documentation | ||
HTML_OUTPUT = . | ||
|
||
GENERATE_LATEX = NO | ||
CASE_SENSE_NAMES = NO | ||
|
||
EXTRACT_PACKAGE = YES | ||
EXTRACT_STATIC = YES | ||
AUTOLINK_SUPPORT = NO | ||
WARN_IF_UNDOCUMENTED = NO | ||
QUIET = YES |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.