blob: ef41586231d698f722186c8b946965a71ed7b472 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/env bash
set -e
root_dist=$(realpath dist)
command -v git grep npm
rm -rf dist/src.tmp.d
git clone . dist/src.tmp.d
(
cd dist/src.tmp.d
{ echo master; git tag --list | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+'
} | while read tag
do
echo "${0}: Checking out $tag"
git checkout $tag
echo "${0}: Building $tag"
[ -f ./_build/postcss.ts ] && ./_build/postcss.ts || ./_build/postcss.js
echo "${0}: Built, placing into /$tag/"
mkdir -p $root_dist/archive/$tag
cp dist/missing.* $root_dist/archive/$tag/
done
)
rm -rf dist/src.tmp.d
|