This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32c9586
commit 41af743
Showing
23 changed files
with
182 additions
and
41 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
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 |
---|---|---|
|
@@ -19,15 +19,18 @@ | |
: You should have received a copy of the GNU General Public License | ||
: along with Nan.Numerics.Prime. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
@echo off | ||
@rem Nan.Numerics.Prime::pack.bat (1.2.1-beta) | ||
@rem Author: Julio P. Di Egidio ([email protected]) | ||
@rem Requires PowerShell 4.0 and .NET 4.5 | ||
|
||
rem Requires PowerShell 4.0 and .NET 4.5 | ||
@echo off | ||
|
||
set name=nan_numerics_prime | ||
set /P ver=Version ? | ||
|
||
set infoDir=.. | ||
set codeDir=..\Code | ||
set testDir=..\Tests | ||
set workDir=.\.work | ||
set targetFile=..\Publish\%name%-%ver%.zip | ||
|
||
|
@@ -45,16 +48,24 @@ echo Copying prolog... | |
|
||
xcopy /Q "%codeDir%\*.*" "%workDir%\prolog\" | ||
|
||
echo Copying test... | ||
|
||
xcopy /Q "%testDir%\*.*" "%workDir%\test\" | ||
|
||
echo Generating target... | ||
|
||
if exist "%targetFile%" ( | ||
del "%targetFile%" | ||
) | ||
|
||
PowerShell ^ | ||
-NoLogo -NonInteractive -NoProfile ^ | ||
-ExecutionPolicy Bypass ^ | ||
-File ".\zipDir.ps1" "%workDir%" "%targetFile%" | ||
if exist "%targetFile%" ( | ||
pause | ||
) else ( | ||
PowerShell ^ | ||
-ExecutionPolicy Bypass ^ | ||
-NoLogo -NoProfile ^ | ||
-File ".\zipDir.ps1" "%workDir%" "%targetFile%" | ||
) | ||
|
||
echo Cleaning up... | ||
|
||
|
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,5 +1,5 @@ | ||
<# Nan.Windows.Scripts | ||
Windows PowerShell Scripts. | ||
Windows Shell Scripts | ||
Copyright 2016 Julio P. Di Egidio | ||
<mailto:[email protected]> | ||
<http://julio.diegidio.name/Projects/Nan.Windows.Scripts/> | ||
|
@@ -13,22 +13,22 @@ | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
#> | ||
|
||
# Usage: zipDir.ps1 <sourceDir> <targetZipFile> | ||
# Nan.Windows.Scripts::zipDir.ps1 (1.2.1) | ||
# Author: Julio P. Di Egidio ([email protected]) | ||
# Usage: $ zipDir.ps1 <sourceDir> <targetFile> | ||
# Adapted from http://stackoverflow.com/a/27289116 | ||
# Requires PowerShell 4.0 and .NET 4.5 | ||
# NOTE: Requires PS option ExecutionPolicy=Bypass | ||
|
||
$peTypeSource = @' | ||
using System.Text; | ||
namespace Nan.Windows.Scripts | ||
{ | ||
public class PathEncoder : UTF8Encoding | ||
{ | ||
namespace Nan.Windows.Scripts { | ||
public class PathEncoder : UTF8Encoding { | ||
public PathEncoder() {} | ||
public override byte[] GetBytes(string s) | ||
{ | ||
public override byte[] GetBytes(string s) { | ||
s = s.Replace("\\", "/"); | ||
return base.GetBytes(s); | ||
} | ||
} | ||
} | ||
} | ||
'@ | ||
|
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,17 @@ | ||
Nan.Numerics.Prime | ||
A simple prime number library | ||
Copyright 2016 Julio P. Di Egidio | ||
Licensed under GNU GPLv3. | ||
http://julio.diegidio.name/Projects/Nan.Numerics.Prime/ | ||
https://github.com/jp-diegidio/Nan.Numerics.Prime-Prolog/ | ||
|
||
Version 1.2.1-beta: | ||
------------------- | ||
- Integration of tests into SWI pack system. | ||
- Bundled Nan.Windows.Scripts (1.2.1). | ||
- Few non-critical code improvements. | ||
- Created history file. | ||
|
||
Version 1.2-beta: | ||
----------------- | ||
- Tagged version 1.2-beta. |
Binary file not shown.
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
Binary file not shown.
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
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
Oops, something went wrong.