From 7c8d6c8b338fa87cf32eb85369f6819f103ca1aa Mon Sep 17 00:00:00 2001 From: Paul Louth Date: Mon, 19 Aug 2024 23:03:39 +0100 Subject: [PATCH] Linux packing scripts --- clean.sh | 31 +++++++++++++++++++++++++++++++ pack.sh | 14 ++++++++------ 2 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 clean.sh diff --git a/clean.sh b/clean.sh new file mode 100644 index 000000000..53bbdd1e9 --- /dev/null +++ b/clean.sh @@ -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 diff --git a/pack.sh b/pack.sh index 2d980d1f2..8ec8ff99d 100644 --- a/pack.sh +++ b/pack.sh @@ -1,3 +1,5 @@ +sh clean.sh + echo building the docs # $BestFormBin is where the bestform.exe is compiled to @@ -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