Skip to content

Commit

Permalink
Linux packing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
louthy committed Aug 19, 2024
1 parent 7759400 commit 7c8d6c8
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 6 deletions.
31 changes: 31 additions & 0 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
echo cleaing bin, obj, and /louthy.github.io/language-ext

# $BestFormBin is where the bestform.exe is compiled to
Artifacts=/home/paul/Documents/dev/artifacts

# $BestFormBin is where the bestform.exe is compiled to
BestFormBin=/home/paul/Documents/dev/best-form/bestform

# $LangExtRoot is where the source code root should be (i.e. c:\dev\language-ext)
LangExtRoot=/home/paul/Documents/dev/language-ext

# $LangExtDocs is where the docs root should be (i.e. c:\dev\louthy.github.io)
LangExtDocs=/home/paul/Documents/dev/louthy.github.io

rm -rf $Artifacts

rm -rf $LangExtRoot/LanguageExt.Core/bin
rm -rf $LangExtRoot/LanguageExt.Parsec/bin
rm -rf $LangExtRoot/LanguageExt.FSharp/bin
rm -rf $LangExtRoot/LanguageExt.Rx/bin
rm -rf $LangExtRoot/LanguageExt.Sys/bin

rm -rf $LangExtRoot/LanguageExt.Core/obj
rm -rf $LangExtRoot/LanguageExt.Parsec/obj
rm -rf $LangExtRoot/LanguageExt.FSharp/obj
rm -rf $LangExtRoot/LanguageExt.Rx/obj
rm -rf $LangExtRoot/LanguageExt.Sys/obj

rm -rf $LangExtDocs/language-ext

echo cleaned
14 changes: 8 additions & 6 deletions pack.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
sh clean.sh

echo building the docs

# $BestFormBin is where the bestform.exe is compiled to
Expand All @@ -9,12 +11,12 @@ LangExtRoot=/home/paul/Documents/dev/language-ext
# $LangExtDocs is where the docs root should be (i.e. c:\dev\louthy.github.io)
LangExtDocs=/home/paul/Documents/dev/louthy.github.io

dotnet build $BestFormBin/bestform.csproj -c Release
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.Core" "$LangExtRoot\LanguageExt.Core" "$LangExtDocs\language-ext" "https://github.com/louthy/language-ext/tree/main"
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.Parsec" "$LangExtRoot\LanguageExt.Parsec" "$LangExtDocs\language-ext" "https://github.com/louthy/language-ext/tree/main"
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.FSharp" "$LangExtRoot\LanguageExt.FSharp" "$LangExtDocs\language-ext" "https://github.com/louthy/language-ext/tree/main"
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.Rx" "$LangExtRoot\LanguageExt.Rx" "$LangExtDocs\language-ext" "https://github.com/louthy/language-ext/tree/main"
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.Sys" "$LangExtRoot\LanguageExt.Sys" "$LangExtDocs\language-ext" "https://github.com/louthy/language-ext/tree/main"
#dotnet build $BestFormBin/bestform.csproj -c Release
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.Core" "$LangExtRoot/LanguageExt.Core" "$LangExtDocs/language-ext" "https://github.com/louthy/language-ext/tree/main"
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.Parsec" "$LangExtRoot/LanguageExt.Parsec" "$LangExtDocs/language-ext" "https://github.com/louthy/language-ext/tree/main"
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.FSharp" "$LangExtRoot/LanguageExt.FSharp" "$LangExtDocs/language-ext" "https://github.com/louthy/language-ext/tree/main"
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.Rx" "$LangExtRoot/LanguageExt.Rx" "$LangExtDocs/language-ext" "https://github.com/louthy/language-ext/tree/main"
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.Sys" "$LangExtRoot/LanguageExt.Sys" "$LangExtDocs/language-ext" "https://github.com/louthy/language-ext/tree/main"

echo committing them to git

Expand Down

0 comments on commit 7c8d6c8

Please sign in to comment.