Skip to content

Commit

Permalink
paket magic mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Byrd committed Feb 12, 2018
1 parent c61771c commit c3edef1
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 35 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ FakesAssemblies/
_Pvt_Extensions

# Paket dependency manager
.paket/paket.exe
paket-files/

# FAKE - F# Make
Expand All @@ -254,4 +253,4 @@ paket-files/

TestResults.xml

dist/
dist/
File renamed without changes.
5 changes: 3 additions & 2 deletions .paket/paket.exe.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Prerelease" value="True"/>
<add key="Prerelease" value="False"/>
<!-- <add key="PaketVersion" value="5.122.0"/> -->
</appSettings>
</configuration>
</configuration>
1 change: 0 additions & 1 deletion Content/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ FakesAssemblies/
_Pvt_Extensions

# Paket dependency manager
.paket/paket.exe
paket-files/

# FAKE - F# Make
Expand Down
File renamed without changes.
5 changes: 3 additions & 2 deletions Content/.paket/paket.exe.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Prerelease" value="True"/>
<add key="Prerelease" value="False"/>
<!-- <add key="PaketVersion" value="5.122.0"/> -->
</appSettings>
</configuration>
</configuration>
5 changes: 0 additions & 5 deletions Content/build.cmd
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
@echo off
cls

.paket\paket.bootstrapper.exe
if errorlevel 1 (
exit /b %errorlevel%
)

.paket\paket.exe restore
if errorlevel 1 (
exit /b %errorlevel%
Expand Down
13 changes: 5 additions & 8 deletions Content/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -eu

cd "$(dirname "$0")"

PAKET_BOOTSTRAPPER_EXE=.paket/paket.bootstrapper.exe
PAKET_EXE=.paket/paket.exe
FAKE_EXE=packages/build/FAKE/tools/FAKE.exe

Expand Down Expand Up @@ -43,12 +42,12 @@ yesno() {
}

set +e
run $PAKET_BOOTSTRAPPER_EXE
bootstrapper_exitcode=$?
run $PAKET_EXE restore
exit_code=$?
set -e

if [ "$OS" != "Windows_NT" ] &&
[ $bootstrapper_exitcode -ne 0 ] &&
[ $exit_code -ne 0 ] &&
[ $(certmgr -list -c Trust | grep X.509 | wc -l) -le 1 ] &&
[ $(certmgr -list -c -m Trust | grep X.509 | wc -l) -le 1 ]
then
Expand All @@ -71,12 +70,10 @@ then
fi
# Re-run bootstrapper whether or not the user ran mozroots, because maybe
# they fixed the problem in a separate terminal window.
run $PAKET_BOOTSTRAPPER_EXE
run $PAKET_EXE restore
fi

run $PAKET_EXE restore

[ ! -e build.fsx ] && run $PAKET_EXE update
[ ! -e build.fsx ] && run $FAKE_EXE init.fsx

run $FAKE_EXE "$@" $FSIARGS $FSIARGS2 build.fsx

5 changes: 0 additions & 5 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
@echo off
cls

.paket\paket.bootstrapper.exe
if errorlevel 1 (
exit /b %errorlevel%
)

.paket\paket.exe restore
if errorlevel 1 (
exit /b %errorlevel%
Expand Down
14 changes: 4 additions & 10 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -eu

cd "$(dirname "$0")"

PAKET_BOOTSTRAPPER_EXE=.paket/paket.bootstrapper.exe
PAKET_EXE=.paket/paket.exe
FAKE_EXE=packages/build/FAKE/tools/FAKE.exe

Expand Down Expand Up @@ -44,12 +43,12 @@ yesno() {
}

set +e
run $PAKET_BOOTSTRAPPER_EXE
bootstrapper_exitcode=$?
run $PAKET_EXE restore
exit_code=$?
set -e

if [ "$OS" != "Windows_NT" ] &&
[ $bootstrapper_exitcode -ne 0 ] &&
[ $exit_code -ne 0 ] &&
[ $(certmgr -list -c Trust | grep X.509 | wc -l) -le 1 ] &&
[ $(certmgr -list -c -m Trust | grep X.509 | wc -l) -le 1 ]
then
Expand All @@ -72,14 +71,9 @@ then
fi
# Re-run bootstrapper whether or not the user ran mozroots, because maybe
# they fixed the problem in a separate terminal window.
run $PAKET_BOOTSTRAPPER_EXE
run $PAKET_EXE restore
fi

run $PAKET_EXE restore

[ ! -e build.fsx ] && run $PAKET_EXE update
[ ! -e build.fsx ] && run $FAKE_EXE init.fsx

# build template
pushd Content/
./build.sh
Expand Down

0 comments on commit c3edef1

Please sign in to comment.