chore: now build in the build dir

This commit is contained in:
Valentin Doreau 2024-10-21 06:41:49 +02:00
parent 31ba0af5dd
commit 0b7238a6c4
Signed by: vdoreau
GPG key ID: F3E456CF9A14098B
2 changed files with 9 additions and 6 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
*.html
build

View file

@ -6,11 +6,13 @@ for locale in en fr; do
(cd $locale/; make clean; make all)
done
workdir=$(mktemp -d)
cp -r assets $workdir
rm -rf build
mkdir build
cp -r assets build/
for locale in en fr; do
mkdir $workdir/$locale
cp -r $locale/*.html $workdir/$locale
cp -r assets $workdir/$locale
mkdir build/$locale
cp -r $locale/*.html build/$locale
cp -r assets build/$locale
done
cp en/index.html $workdir
cp en/index.html build