-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdist.sh
executable file
·44 lines (43 loc) · 925 Bytes
/
dist.sh
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
set -e
set -x
TOOL=ep
VERS=$(cat VERSION)
TOVE=$TOOL-$VERS
eval "$(plenv init -)"
echo $VERS $(date +"%Y-%m-%d %H:%M:%S %z") $(git config user.name) '<'$(git config user.email)'>' >> CHANGES.new
echo >> CHANGES.new
echo ' -' >> CHANGES.new
echo >> CHANGES.new
cat CHANGES >> CHANGES.new && mv CHANGES.new CHANGES
$EDITOR CHANGES
rm -f config.status
export PLENV_VERSION=
./bootstrap
for x in 5.32.0; do
xs=$(echo $x| sed 's/.[0-9]*$//')
test thirdparty/cpanfile-$xs.snapshot -nt cpanfile && continue
echo "Building dependencies for perl $x ($xs)"
export PLENV_VERSION=$x
./configure
cd thirdparty
mv lib .lib-off
make clean
if [ -d .lib-$xs ]; then
mv .lib-$xs lib
fi
make
mv lib .lib-$xs
make clean
mv .lib-off lib
cd ..
done
export PLENV_VERSION=
./configure
make
make test
make dist
git commit -a
git push
gh release create v$VERS
gh release upload v$VERS ep-$VERS.tar.gz