diff --git a/all-versions-smoo.sh b/all-versions-smoo.sh index a446d92..33edab3 100755 --- a/all-versions-smoo.sh +++ b/all-versions-smoo.sh @@ -44,7 +44,7 @@ for dir in "${directories[@]}"; do # Check if smoo.sh exists and is executable if [[ -x "$versions_dir/$version/smoo.sh" ]]; then # Execute smoo.sh with the version as a parameter - $versions_dir/$version/smoo.sh "$version" + $versions_dir/$version/smoo.sh else echo "Error: smoo.sh is not executable or found" fi diff --git a/smoo.sh b/smoo.sh index 4971aca..ce31c1d 100755 --- a/smoo.sh +++ b/smoo.sh @@ -2,6 +2,12 @@ version="main" +echo "" +echo "" +echo "SETUP MAIN ACTION for : $version" +echo "" +echo "" + OLDIFS="$IFS" IFS=$'\n' @@ -12,11 +18,16 @@ else fi github_base='https://github.com/Volumetrics-io/documentation/edit/main/source' site_name='MRjs' + saved_version_dir="v-saved/all-saved/$version" sourceDir="$saved_version_dir/source" templateHTML="$sourceDir/_template.html" outputDir="public/v/$version" +echo "saved_version_dir:" $saved_version_dir +echo "sourceDir:" $sourceDir +echo "outputDir:" $outputDir + assetDir="$sourceDir/static" pagesDir="$sourceDir/pages" ecsDir="$sourceDir/ecs" @@ -44,7 +55,7 @@ current_year=$(date +"%Y") echo "" echo "" -echo "RUNNING MAIN ACTION" +echo "RUNNING MAIN ACTION for : $version" echo "" echo "" diff --git a/v-saved/all-saved/main/all-versions-smoo.sh b/v-saved/all-saved/main/all-versions-smoo.sh index a446d92..33edab3 100755 --- a/v-saved/all-saved/main/all-versions-smoo.sh +++ b/v-saved/all-saved/main/all-versions-smoo.sh @@ -44,7 +44,7 @@ for dir in "${directories[@]}"; do # Check if smoo.sh exists and is executable if [[ -x "$versions_dir/$version/smoo.sh" ]]; then # Execute smoo.sh with the version as a parameter - $versions_dir/$version/smoo.sh "$version" + $versions_dir/$version/smoo.sh else echo "Error: smoo.sh is not executable or found" fi diff --git a/v-saved/all-saved/main/smoo.sh b/v-saved/all-saved/main/smoo.sh index 4971aca..ce31c1d 100755 --- a/v-saved/all-saved/main/smoo.sh +++ b/v-saved/all-saved/main/smoo.sh @@ -2,6 +2,12 @@ version="main" +echo "" +echo "" +echo "SETUP MAIN ACTION for : $version" +echo "" +echo "" + OLDIFS="$IFS" IFS=$'\n' @@ -12,11 +18,16 @@ else fi github_base='https://github.com/Volumetrics-io/documentation/edit/main/source' site_name='MRjs' + saved_version_dir="v-saved/all-saved/$version" sourceDir="$saved_version_dir/source" templateHTML="$sourceDir/_template.html" outputDir="public/v/$version" +echo "saved_version_dir:" $saved_version_dir +echo "sourceDir:" $sourceDir +echo "outputDir:" $outputDir + assetDir="$sourceDir/static" pagesDir="$sourceDir/pages" ecsDir="$sourceDir/ecs" @@ -44,7 +55,7 @@ current_year=$(date +"%Y") echo "" echo "" -echo "RUNNING MAIN ACTION" +echo "RUNNING MAIN ACTION for : $version" echo "" echo "" diff --git a/v-saved/all-saved/v0.6.2/smoo.sh b/v-saved/all-saved/v0.6.2/smoo.sh index 84b7631..a9f1c55 100755 --- a/v-saved/all-saved/v0.6.2/smoo.sh +++ b/v-saved/all-saved/v0.6.2/smoo.sh @@ -2,6 +2,12 @@ version="v0.6.2" +echo "" +echo "" +echo "SETUP MAIN ACTION for : $version" +echo "" +echo "" + OLDIFS="$IFS" IFS=$'\n' @@ -16,6 +22,7 @@ saved_version_dir="v-saved/all-saved/$version" sourceDir="$saved_version_dir/source" templateHTML="$sourceDir/_template.html" outputDir="public/v/$version" +echo "outputDir:" $outputDir assetDir="$sourceDir/static" pagesDir="$sourceDir/pages" @@ -28,6 +35,12 @@ jsAPIUtilsDir="$sourceDir/js-api-utils" current_year=$(date +"%Y") +echo "" +echo "" +echo "RUNNING MAIN ACTION for : $version" +echo "" +echo "" + #run main action mkdir -p "$outputDir" rm -rf "${outputDir}"/* diff --git a/v-saved/all-saved/v0.6.3/smoo.sh b/v-saved/all-saved/v0.6.3/smoo.sh index 41baedf..7d7e44c 100755 --- a/v-saved/all-saved/v0.6.3/smoo.sh +++ b/v-saved/all-saved/v0.6.3/smoo.sh @@ -2,6 +2,12 @@ version="v0.6.3" +echo "" +echo "" +echo "SETUP MAIN ACTION for : $version" +echo "" +echo "" + OLDIFS="$IFS" IFS=$'\n' @@ -16,6 +22,7 @@ saved_version_dir="v-saved/all-saved/$version" sourceDir="$saved_version_dir/source" templateHTML="$sourceDir/_template.html" outputDir="public/v/$version" +echo "outputDir:" $outputDir assetDir="$sourceDir/static" pagesDir="$sourceDir/pages" @@ -28,6 +35,12 @@ jsAPIUtilsDir="$sourceDir/js-api-utils" current_year=$(date +"%Y") +echo "" +echo "" +echo "RUNNING MAIN ACTION for : $version" +echo "" +echo "" + #run main action mkdir -p "$outputDir" rm -rf "${outputDir}"/* diff --git a/v-saved/all-saved/v0.6.4/smoo.sh b/v-saved/all-saved/v0.6.4/smoo.sh index a11c4ee..3234854 100755 --- a/v-saved/all-saved/v0.6.4/smoo.sh +++ b/v-saved/all-saved/v0.6.4/smoo.sh @@ -2,12 +2,20 @@ version="v0.6.4" +echo "" +echo "" +echo "SETUP MAIN ACTION for : $version" +echo "" +echo "" + OLDIFS="$IFS" IFS=$'\n' if [ "$LOCAL" = "true" ]; then + echo "LOCAL IS TRUE" base_url="http://localhost:8000/v/$version" else + echo "LOCAL IS NOT TRUE" base_url="https://docs.mrjs.io/v/$version" fi github_base='https://github.com/Volumetrics-io/documentation/edit/main/source' @@ -16,6 +24,7 @@ saved_version_dir="v-saved/all-saved/$version" sourceDir="$saved_version_dir/source" templateHTML="$sourceDir/_template.html" outputDir="public/v/$version" +echo "outputDir:" $outputDir assetDir="$sourceDir/static" pagesDir="$sourceDir/pages" @@ -29,6 +38,12 @@ jsAPIUtilsDir="$sourceDir/js-api-utils" current_year=$(date +"%Y") +echo "" +echo "" +echo "RUNNING MAIN ACTION for : $version" +echo "" +echo "" + #run main action mkdir -p "$outputDir" rm -rf "${outputDir}"/*