Adding debian version 5.2.3+dfsg-1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
bc475d7d0d
commit
409661b691
15 changed files with 625 additions and 0 deletions
60
debian/rules
vendored
Executable file
60
debian/rules
vendored
Executable file
|
@ -0,0 +1,60 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
export BROWSERSLIST_IGNORE_OLD_DATA=1
|
||||
|
||||
%:
|
||||
dh ${@}
|
||||
|
||||
execute_after_dh_auto_clean:
|
||||
rm -rf dist js/dist
|
||||
|
||||
override_dh_auto_build:
|
||||
mkdir -p dist/css dist/js dist/tmp
|
||||
|
||||
sassc --sourcemap=auto scss/bootstrap.scss dist/tmp/bootstrap.css
|
||||
sassc --sourcemap=auto scss/bootstrap-grid.scss dist/tmp/bootstrap-grid.css
|
||||
sassc --sourcemap=auto scss/bootstrap-reboot.scss dist/tmp/bootstrap-reboot.css
|
||||
|
||||
postcss --config build/postcss.config.js --replace 'dist/tmp/*.css' '!dist/tmp/*.min.css'
|
||||
|
||||
cp -v dist/tmp/*.css dist/css/
|
||||
cp -v dist/tmp/*.css.map dist/css/
|
||||
|
||||
sassc --sourcemap=auto --style compressed dist/tmp/bootstrap.css dist/css/bootstrap.min.css
|
||||
sassc --sourcemap=auto --style compressed dist/tmp/bootstrap-grid.css dist/css/bootstrap-grid.min.css
|
||||
sassc --sourcemap=auto --style compressed dist/tmp/bootstrap-reboot.css dist/css/bootstrap-reboot.min.css
|
||||
|
||||
rm -rf dist/tmp
|
||||
|
||||
NODE_PATH=node_modules node build/build-plugins.js
|
||||
NODE_PATH=node_modules rollup --sourcemap --environment BUNDLE:true --config build/rollup.config.js
|
||||
NODE_PATH=node_modules rollup --sourcemap --environment BUNDLE:false --config build/rollup.config.js
|
||||
|
||||
cd dist/js && terser --compress --mangle --comments "/^!" --source-map content=bootstrap.bundle.js.map,includeSources,url=bootstrap.bundle.min.js.map -o bootstrap.bundle.min.js bootstrap.bundle.js
|
||||
cd dist/js && terser --compress --mangle --comments "/^!" --source-map content=bootstrap.js.map,includeSources,url=bootstrap.min.js.map -o bootstrap.min.js bootstrap.js
|
||||
|
||||
override_dh_auto_install:
|
||||
# disabled
|
||||
|
||||
override_dh_auto_test:
|
||||
# disabled
|
||||
|
||||
execute_before_dh_link:
|
||||
# javascript-common
|
||||
cd debian/libjs-bootstrap5 && for FILE in $$(find usr/share/bootstrap-html -type f); \
|
||||
do \
|
||||
mkdir -p $$(dirname $$(echo $${FILE} | sed -e 's|usr/share/bootstrap-html|usr/share/javascript/bootstrap|')); \
|
||||
ln -s /$${FILE} $$(echo $${FILE} | sed -e 's|usr/share/bootstrap-html|usr/share/javascript/bootstrap|'); \
|
||||
done
|
||||
|
||||
# nodejs
|
||||
cd debian/libjs-bootstrap5 && for FILE in $$(find usr/share/bootstrap-html -type f); \
|
||||
do \
|
||||
mkdir -p ../node-bootstrap/$$(dirname $$(echo $${FILE} | sed -e 's|usr/share/bootstrap-html|usr/share/nodejs/bootstrap|')); \
|
||||
ln -s /$${FILE} ../node-bootstrap/$$(echo $${FILE} | sed -e 's|usr/share/bootstrap-html|usr/share/nodejs/bootstrap|'); \
|
||||
done
|
||||
|
||||
ln -s ../../sass/bootstrap debian/node-bootstrap/usr/share/nodejs/bootstrap/scss
|
||||
|
||||
override_dh_installdocs:
|
||||
dh_installdocs --exclude license.md
|
Loading…
Add table
Add a link
Reference in a new issue