Skip to content

Commit

Permalink
Fix up webpack recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 7, 2024
1 parent d1c7a60 commit b1304f2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,17 @@ clean:

webpack:
# Create temporary directory for the archive content
mkdir -p ../docs/_static/dist/tmp
cp -r ../* ../docs/_static/dist/tmp
mkdir -p ../docs/_static/dist/tmp/euler
cp -r ../{_data,python} ../docs/_static/dist/tmp/euler

# Add __init__.py files to the temporary directory
echo "# init file" > ../docs/_static/dist/tmp/__init__.py
echo "# init file" > ../docs/_static/dist/tmp/python/__init__.py
echo "# init file" > ../docs/_static/dist/tmp/euler/__init__.py
echo "# init file" > ../docs/_static/dist/tmp/euler/python/__init__.py

# Exclude unwanted directories and create tarball
cd ../docs/_static/dist/tmp && \
cd ../docs/_static/dist/tmp/euler && \
tar --exclude='__pycache__' --exclude='*/__pycache__' \
--exclude='!_data' --exclude='!python' \
-czvf ../python.tar.gz .
-czvf ../../python.tar.gz .

# Clean up temporary directory
rm -rf ../docs/_static/dist/tmp

0 comments on commit b1304f2

Please sign in to comment.