~hristoast/wem

wem/package.sh -rwxr-xr-x 716 bytes
173cf260Hristos N. Triantafillou Do pre run with exec 4 months ago
                                                                                
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
#!/usr/bin/env bash

# set -x
set -eu -o pipefail

this_dir=$(realpath $(dirname ${0}))
cd "${this_dir}"

# Binary
mkdir pkg
mv wem pkg/

# README
cp README.md pkg/

# License
cp LICENSE pkg/

# Changelog
cp CHANGELOG.md pkg/

# Version
cat >> pkg/version.txt <<EOF
WEM version: $(git describe --tags HEAD -- 2>/dev/null)
EOF

# Docs
git checkout origin/website -- site
git reset HEAD site
pushd site/docs
for f in build.html cfg.html dxvk-vkd3d.html init.html install.html list.html options.html proton.html run.html tips.html wem-cfg.html; do
    pandoc "${f}" -o $(echo ${f} | sed "s|\.html|\.md|")
done
rm -f *.html
popd
mv site/docs pkg/
rm -rf site

# Package it
mv pkg wem
tar cjpf wem.tar.bz2 wem
rm -rf wem