25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
@# This is required by psalm, but useless
@-mkdir vendor
@-echo '{"require": {}}' > vendor/autoload.php
psalm.phar -c ../tests/psalm.xml
release: test minify
$(eval VERSION=$(shell cat VERSION))
rm -rf /tmp/garradin-build
mkdir -p /tmp/garradin-build
fossil zip ${VERSION} /tmp/garradin-build/src.zip --name garradin
unzip -d /tmp/garradin-build /tmp/garradin-build/src.zip
cd include/lib; \
rsync --files-from=dependencies.list -r ./ /tmp/garradin-build/garradin/src/include/lib/
mv www/admin/static/mini.css /tmp/garradin-build/garradin/src/www/admin/static/admin.css
cd /tmp/garradin-build/garradin/src/www/admin/static; \
rm -f styles/[0-9]*.css; \
rm -f font/*.css font/*.json
cd /tmp/garradin-build/garradin/src; \
rm -f Makefile include/lib/KD2/data/countries.en.json
cd /tmp/garradin-build/garradin/src/data; mkdir plugins && cd plugins; \
wget https://fossil.kd2.org/garradin-plugins/uv/welcome.tar.gz
mv /tmp/garradin-build/garradin/src /tmp/garradin-build/garradin-${VERSION}
@#cd /tmp/garradin-build/; zip -r -9 garradin-${VERSION}.zip garradin-${VERSION};
@#mv -f /tmp/garradin-build/garradin-${VERSION}.zip ./
tar czvfh garradin-${VERSION}.tar.gz --hard-dereference -C /tmp/garradin-build garradin-${VERSION}
deb:
cd ../debian; ./makedeb.sh
publish: release deb
$(eval VERSION=$(shell cat VERSION))
gpg --armor --detach-sign garradin-${VERSION}.tar.gz
fossil uv sync
#fossil uv ls | fgrep -v 'garradin-0.8.5' | grep '^garradin-.*\.(tar\.bz2|deb)' | xargs fossil uv rm
fossil uv add garradin-${VERSION}.tar.gz
fossil uv add garradin-${VERSION}.tar.gz.asc
cd ../debian && fossil uv add garradin-${VERSION}-*.deb
cd ../tools && php make_installer.php > install.php && fossil uv add install.php && rm install.php
fossil uv sync
check-dependencies:
grep -hEo '^use \\?KD2\\[^; ]+|\\KD2\\[^\(:; ]+' -R include/lib/Garradin www | sed -r 's/^use \\?KD2\\|^\\KD2\\//' | sort | uniq
minify:
cat `ls www/admin/static/styles/[0-9]*.css` | sed 's/\.\.\///' > www/admin/static/mini.css
# Minify is only gaining 500 gzipped bytes (4kB uncompressed) but making things hard to read/hack
#yui-compressor --nomunge www/admin/static/mini.css -o www/admin/static/mini.css
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
@# This is required by psalm, but useless
@-mkdir vendor
@-echo '{"require": {}}' > vendor/autoload.php
psalm.phar -c ../tests/psalm.xml
release: test minify
$(eval VERSION=$(shell cat VERSION))
rm -rf /tmp/paheko-build
mkdir -p /tmp/paheko-build
fossil zip ${VERSION} /tmp/paheko-build/src.zip --name paheko
unzip -d /tmp/paheko-build /tmp/paheko-build/src.zip
cd include/lib; \
rsync --files-from=dependencies.list -r ./ /tmp/paheko-build/paheko/src/include/lib/
mv www/admin/static/mini.css /tmp/paheko-build/paheko/src/www/admin/static/admin.css
cd /tmp/paheko-build/paheko/src/www/admin/static; \
rm -f styles/[0-9]*.css; \
rm -f font/*.css font/*.json
cd /tmp/paheko-build/paheko/src; \
rm -f Makefile include/lib/KD2/data/countries.en.json
cd /tmp/paheko-build/paheko/src/data; mkdir plugins && cd plugins; \
wget https://fossil.kd2.org/paheko-plugins/uv/welcome.tar.gz
mv /tmp/paheko-build/paheko/src /tmp/paheko-build/paheko-${VERSION}
@#cd /tmp/paheko-build/; zip -r -9 paheko-${VERSION}.zip paheko-${VERSION};
@#mv -f /tmp/paheko-build/paheko-${VERSION}.zip ./
tar czvfh paheko-${VERSION}.tar.gz --hard-dereference -C /tmp/paheko-build paheko-${VERSION}
deb:
cd ../debian; ./makedeb.sh
publish: release deb
$(eval VERSION=$(shell cat VERSION))
gpg --armor --detach-sign paheko-${VERSION}.tar.gz
fossil uv sync
#fossil uv ls | fgrep -v 'paheko-0.8.5' | grep '^paheko-.*\.(tar\.bz2|deb)' | xargs fossil uv rm
fossil uv add paheko-${VERSION}.tar.gz
fossil uv add paheko-${VERSION}.tar.gz.asc
cd ../debian && fossil uv add paheko-${VERSION}-*.deb
cd ../tools && php make_installer.php > install.php && fossil uv add install.php && rm install.php
fossil uv sync
check-dependencies:
grep -hEo '^use \\?KD2\\[^; ]+|\\KD2\\[^\(:; ]+' -R include/lib/Garradin www | sed -r 's/^use \\?KD2\\|^\\KD2\\//' | sort | uniq
minify:
cat `ls www/admin/static/styles/[0-9]*.css` | sed 's/\.\.\///' > www/admin/static/mini.css
# Minify is only gaining 500 gzipped bytes (4kB uncompressed) but making things hard to read/hack
#yui-compressor --nomunge www/admin/static/mini.css -o www/admin/static/mini.css
|