Skip to content

Commit d55c11a

Browse files
committed
progress
Signed-off-by: hanbollar <[email protected]>
1 parent dcab1ce commit d55c11a

File tree

7 files changed

+40
-70
lines changed

7 files changed

+40
-70
lines changed

all-versions-smoo.sh

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,26 @@ printf "%s\n" "${directories[@]}"
3131

3232
# Example of processing each directory
3333
for dir in "${directories[@]}"; do
34-
echo "hi2.0"
35-
echo $dir
36-
if [ -d "$dir" ]; then
37-
echo "hi2"
38-
version=${dir%/} # Strip trailing slash to get the version name
39-
40-
echo "Processing version $version..."
41-
42-
# Change to the version directory
43-
# cd "$version"
44-
45-
echo "pwd:" $(pwd)
46-
echo "smoo.sh is:" "$versions_dir/$version/smoo.sh"
47-
48-
# Check if smoo.sh exists and is executable
49-
if [[ -x "$versions_dir/$version/smoo.sh" ]]; then
50-
# Execute smoo.sh with the version as a parameter
51-
$versions_dir/$version/smoo.sh "$version"
52-
else
53-
echo "Error: smoo.sh is not executable or found"
54-
fi
55-
56-
# Go back to the version directory
57-
# cd ..
34+
version=${dir%/} # Strip trailing slash to get the version name
35+
36+
echo "Processing version $version..."
37+
38+
# Change to the version directory
39+
# cd "$version"
40+
41+
echo "pwd:" $(pwd)
42+
echo "smoo.sh is:" "$versions_dir/$version/smoo.sh"
43+
44+
# Check if smoo.sh exists and is executable
45+
if [[ -x "$versions_dir/$version/smoo.sh" ]]; then
46+
# Execute smoo.sh with the version as a parameter
47+
$versions_dir/$version/smoo.sh "$version"
48+
else
49+
echo "Error: smoo.sh is not executable or found"
5850
fi
51+
52+
# Go back to the version directory
53+
# cd ..
5954
done
6055

6156
# Return to the original directory

smoo.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
1717
templateHTML="$sourceDir/_template.html"
1818
outputDir="public/v/$version"
1919

20-
if [ "$version" != "main" ]; then
21-
outputDir="../../$outputDir"
22-
fi
23-
2420
assetDir="$sourceDir/static"
2521
pagesDir="$sourceDir/pages"
2622
ecsDir="$sourceDir/ecs"

v-saved/all-saved/main/all-versions-smoo.sh

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,26 @@ printf "%s\n" "${directories[@]}"
3131

3232
# Example of processing each directory
3333
for dir in "${directories[@]}"; do
34-
echo "hi2.0"
35-
echo $dir
36-
if [ -d "$dir" ]; then
37-
echo "hi2"
38-
version=${dir%/} # Strip trailing slash to get the version name
39-
40-
echo "Processing version $version..."
41-
42-
# Change to the version directory
43-
# cd "$version"
44-
45-
echo "pwd:" $(pwd)
46-
echo "smoo.sh is:" "$versions_dir/$version/smoo.sh"
47-
48-
# Check if smoo.sh exists and is executable
49-
if [[ -x "$versions_dir/$version/smoo.sh" ]]; then
50-
# Execute smoo.sh with the version as a parameter
51-
$versions_dir/$version/smoo.sh "$version"
52-
else
53-
echo "Error: smoo.sh is not executable or found"
54-
fi
55-
56-
# Go back to the version directory
57-
# cd ..
34+
version=${dir%/} # Strip trailing slash to get the version name
35+
36+
echo "Processing version $version..."
37+
38+
# Change to the version directory
39+
# cd "$version"
40+
41+
echo "pwd:" $(pwd)
42+
echo "smoo.sh is:" "$versions_dir/$version/smoo.sh"
43+
44+
# Check if smoo.sh exists and is executable
45+
if [[ -x "$versions_dir/$version/smoo.sh" ]]; then
46+
# Execute smoo.sh with the version as a parameter
47+
$versions_dir/$version/smoo.sh "$version"
48+
else
49+
echo "Error: smoo.sh is not executable or found"
5850
fi
51+
52+
# Go back to the version directory
53+
# cd ..
5954
done
6055

6156
# Return to the original directory

v-saved/all-saved/main/smoo.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
1717
templateHTML="$sourceDir/_template.html"
1818
outputDir="public/v/$version"
1919

20-
if [ "$version" != "main" ]; then
21-
outputDir="../../$outputDir"
22-
fi
23-
2420
assetDir="$sourceDir/static"
2521
pagesDir="$sourceDir/pages"
2622
ecsDir="$sourceDir/ecs"

v-saved/all-saved/v0.6.2/smoo.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
1717
templateHTML="$sourceDir/_template.html"
1818
outputDir="public/v/$version"
1919

20-
if [ "$version" != "main" ]; then
21-
outputDir="../../$outputDir"
22-
fi
23-
2420
assetDir="$sourceDir/static"
2521
pagesDir="$sourceDir/pages"
2622
docsDir="$sourceDir/docs"
@@ -187,7 +183,7 @@ process_markdown "$jsAPIUtilsDir" "js-api-utils" "js-api-utils"
187183

188184
# --metadata base-url="$base_url" \
189185
# --metadata github-path="https://github.com/Volumetrics-io/mrjs/edit/main/README.md" \
190-
pandoc "${templateDir}/index.md" \
186+
pandoc "${sourceDir}/index.md" \
191187
--template $templateHTML \
192188
--metadata current-year="$current_year" \
193189
--metadata site-name="$site_name" \

v-saved/all-saved/v0.6.3/smoo.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
1717
templateHTML="$sourceDir/_template.html"
1818
outputDir="public/v/$version"
1919

20-
if [ "$version" != "main" ]; then
21-
outputDir="../../$outputDir"
22-
fi
23-
2420
assetDir="$sourceDir/static"
2521
pagesDir="$sourceDir/pages"
2622
docsDir="$sourceDir/docs"
@@ -187,7 +183,7 @@ process_markdown "$jsAPIUtilsDir" "js-api-utils" "js-api-utils"
187183

188184
# --metadata base-url="$base_url" \
189185
# --metadata github-path="https://github.com/Volumetrics-io/mrjs/edit/main/README.md" \
190-
pandoc "${templateDir}/index.md" \
186+
pandoc "${sourceDir}/index.md" \
191187
--template $templateHTML \
192188
--metadata current-year="$current_year" \
193189
--metadata site-name="$site_name" \

v-saved/all-saved/v0.6.4/smoo.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ sourceDir="$saved_version_dir/source"
1717
templateHTML="$sourceDir/_template.html"
1818
outputDir="public/v/$version"
1919

20-
if [ "$version" != "main" ]; then
21-
outputDir="../../$outputDir"
22-
fi
23-
2420
assetDir="$sourceDir/static"
2521
pagesDir="$sourceDir/pages"
2622
ecsDir="$sourceDir/ecs"

0 commit comments

Comments
 (0)