Skip to content
Snippets Groups Projects
Select Git revision
  • f9d2560468e11ebf15cbcd057b8fc31dc8eb6824
  • master default protected
  • rednatco-v2
  • base-pairs-ladder
  • rednatco
  • test
  • ntc-tube-uniform-color
  • ntc-tube-missing-atoms
  • restore-vertex-array-per-program
  • watlas2
  • dnatco_new
  • cleanup-old-nodejs
  • webmmb
  • fix_auth_seq_id
  • update_deps
  • ext_dev
  • ntc_balls
  • nci-2
  • plugin
  • bugfix-0.4.5
  • nci
  • v0.5.0-dev.1
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0
  • v0.3.12
  • v0.3.11
  • v0.3.10
  • v0.3.9
  • v0.3.8
  • v0.3.7
  • v0.3.6
  • v0.3.5
  • v0.3.4
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
41 results

webpack.config.js

Blame
  • make.sh 1.87 KiB
    #!/bin/bash
    
    set -x
    
    # Nastaveni promennych, pokud je SINVERSION zakomentovana, pokusime se odhadnout nejnovejsi
    export DEBIAN_FRONTEND=noninteractive
    export DEBEMAIL="Pavel Vondruska <vondruska@cesnet.cz>"
    
    # Nacteni promennych o bezicim systemu vcetne verzi
    . /etc/os-release
    
    # Od Debian 11 Bullseye ma debian-security trochu jinou cestu, abychom mohli pouzit heredoc, rozskocime si pres funkci
    function get_debian_security() {
        if [ "${VERSION_ID}" -lt "11" ]; then echo "${VERSION_CODENAME}/updates"; else echo "${VERSION_CODENAME}-security"; fi
    }
    
    # Vygenerovani sources.list podle verze Debianu
    cat > /etc/apt/sources.list << EOSOURCES
    deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free
    deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main contrib non-free
    deb http://deb.debian.org/debian-security/ $(get_debian_security) main contrib non-free
    
    deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free
    deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main contrib non-free
    deb-src http://deb.debian.org/debian-security/ $(get_debian_security) main contrib non-free
    EOSOURCES
    
    # Instalace buildovacich veci a zavislosti
    apt update -qqq
    apt install -yqqq git devscripts build-essential
    
    apt source linux
    
    LINDIR=$(find . -maxdepth 1 -name 'linux-*' -type d)
    
    cp -rv meta ${LINDIR}/debian/patches
    
    cd ${LINDIR}
    cd debian/patches
    
    echo '# META' >> series
    for i in `find meta -type f`; do echo $i; done >> series
    
    cd ..
    cd ..
    
    dch -l "+zs" "MetaCentrum patches"
    for i in `ls debian/patches/meta`; do dch -a "$i"; done
    
    mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --yes' debian/control
    
    # Build balicku (poprve skonci hned chybou)
    dpkg-buildpackage -uc -us -b || true
    dpkg-buildpackage -uc -us -b > ../build.log 2>&1 || true
    
    cd ..
    mkdir build
    mv build.log build/
    mv *.deb build/