diff --git a/extra/scripts/CD/distrofiles/arch/snapshot/PKGBUILD b/extra/scripts/CD/distrofiles/arch/snapshot/PKGBUILD deleted file mode 100644 index 04eab8d2810f3ac5ccf32a69b06e628bb53aef92..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/arch/snapshot/PKGBUILD +++ /dev/null @@ -1,82 +0,0 @@ -# Maintainer: Tomas Pecka <peckato1 at fit dot cvut dot cz> - -pkgname=('algorithms-library-snapshot' 'algorithms-library-gui-snapshot') -pkgbase='automata-library' - -pkgver=0.0.0.r515.gc4bc905a4 -pkgrel=1 - -pkgdesc='Theoretical computer science datastructures and algorithms implementation. The library provides graphical and console interface similar to bash with many classical algorithms manipulating automata, grammars, regular expressions, trees and strings.' -arch=('x86_64' 'armv7' 'i686') -url='https://gitlab.fit.cvut.cz/algorithms-library-toolkit/' -license=('GPL') - -makedepends=('python3' 'cmake' 'gcc>=7.3.1' 'make' 'tclap' 'libxml2' 'qt5-base>=5.7' 'graphviz' 'jsoncpp' 'git') -checkdepends=() - -source=("$pkgbase::git+https://gitlab.fit.cvut.cz/algorithms-library-toolkit/automata-library.git") -sha256sums=('SKIP') -validpgpkeys=() - -pkgver() { - cd "$pkgbase" - git describe --long --tags --match="v*" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' -} - -prepare() { - cd "$pkgbase" - - #patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" - - mkdir -p build -} - -build() { - cd "$pkgbase/build" - python ../CMake/generate.py -wm - cmake .. \ - -DBUILD_TYPE=Snapshot \ - -DCMAKE_INSTALL_PREFIX=/usr - make -} - -check() { - cd "$pkgbase/build" - make test ARGS="--output-on-failure -j$(grep -c processor /proc/cpuinfo)" -} - -package_algorithms-library-snapshot() { - depends=('libxml2' 'readline') - optdepends=('graphviz: Visualize data structures') - provides=('algorithms-library') - conflicts=('algorithms-library') - - cd "$pkgbase/build" - make DESTDIR="$pkgdir" install - - # remove gui parts - mkdir -p gui/usr/lib gui/usr/bin gui/usr/include/algorithms-library - - # move binaries - mv -f $pkgdir/usr/bin/agui2 gui/usr/bin - - # move libraries - mv -f $pkgdir/usr/lib/libalib2gui* gui/usr/lib - - # move includes - pushd ../alib2gui/src - for file in $(find . -name "*.h" -o -name "*.hpp"); do - mkdir -p $(dirname "../../build/gui/usr/include/algorithms-library/$file") - mv $pkgdir/usr/include/algorithms-library/$file ../../build/gui/usr/include/algorithms-library/$file - done - popd -} - -package_algorithms-library-gui-snapshot() { - depends=('libxml2' 'qt5-base>=5.7' 'graphviz' 'jsoncpp' "algorithms-library-snapshot>=$pkgver" "algorithms-library-snapshot<=$pkgver") - provides=('algorithms-library-gui') - conflicts=('algorithms-library-gui') - - cd "$pkgbase/build" - mv gui/* $pkgdir -} diff --git a/extra/scripts/CD/distrofiles/arch/stable/PKGBUILD b/extra/scripts/CD/distrofiles/arch/stable/PKGBUILD deleted file mode 100644 index 03268e35870a1473f035d759ba76c20a256ba81b..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/arch/stable/PKGBUILD +++ /dev/null @@ -1,77 +0,0 @@ -# Maintainer: Tomas Pecka <peckato1 at fit dot cvut dot cz> - -pkgname=('algorithms-library' 'algorithms-library-gui') -pkgbase='automata-library' - -pkgver=0.0.0 -pkgrel=1 - -pkgdesc='Theoretical computer science datastructures and algorithms implementation. The library provides graphical and console interface similar to bash with many classical algorithms manipulating automata, grammars, regular expressions, trees and strings.' -arch=('x86_64' 'armv7' 'i686') -url='https://gitlab.fit.cvut.cz/algorithms-library-toolkit/' -license=('GPL') - -makedepends=('python3' 'cmake' 'gcc>=7.3.1' 'make' 'tclap' 'libxml2' 'qt5-base>=5.7' 'graphviz' 'jsoncpp' ) -checkdepends=() - -source=("https://gitlab.fit.cvut.cz/algorithms-library-toolkit/automata-library/-/archive/v$pkgver/automata-library-v$pkgver.tar.gz") -sha256sums=('47395d7c38523d8cddda3aff5157e84017f574d04bdc9a9625591c82e79c2db4') -validpgpkeys=() - -prepare() { - cd "$pkgbase-v$pkgver" - - # patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" - - mkdir -p build -} - -build() { - cd "$pkgbase-v$pkgver/build" - python ../CMake/generate.py -wm - cmake .. \ - -DBUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr - make -} - -check() { - cd "$pkgbase-v$pkgver/build" - make test ARGS="--output-on-failure" -} - -package_algorithms-library() { - depends=('libxml2' 'readline') - optdepends=('graphviz: Visualize data structures') - provides=('algorithms-library') - conflicts=('algorithms-library') - - cd "$pkgbase-v$pkgver/build" - make DESTDIR="$pkgdir" install - - # remove gui parts - mkdir -p gui/usr/lib gui/usr/bin gui/usr/include/algorithms-library - - # move binaries - mv -f $pkgdir/usr/bin/agui2 gui/usr/bin - - # move libraries - mv -f $pkgdir/usr/lib/libalib2gui* gui/usr/lib - - # move includes - pushd ../alib2gui/src - for file in $(find . -name "*.h" -o -name "*.hpp"); do - mkdir -p $(dirname "../../build/gui/usr/include/algorithms-library/$file") - mv $pkgdir/usr/include/algorithms-library/$file ../../build/gui/usr/include/algorithms-library/$file - done - popd -} - -package_algorithms-library-gui() { - depends=('libxml2' 'qt5-base>=5.7' 'graphviz' 'jsoncpp' "algorithms-library>=$pkgver" "algorithms-library<=$pkgver") - provides=('algorithms-library-gui') - conflicts=('algorithms-library-gui') - - cd "$pkgbase-v$pkgver/build" - mv gui/* $pkgdir -} diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/README.Debian b/extra/scripts/CD/distrofiles/deb/snapshot/debian/README.Debian deleted file mode 100644 index 7d38f1a4aece3e2b6879992bef5a79b832270131..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/README.Debian +++ /dev/null @@ -1,6 +0,0 @@ -algorithms-library for Debian ------------------------------ - -<possible notes regarding this package - if none, delete this file> - - -- Tomáš Pecka <peckato1@fit.cvut.cz> Sat, 10 Aug 2019 16:04:38 +0000 diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/README.source b/extra/scripts/CD/distrofiles/deb/snapshot/debian/README.source deleted file mode 100644 index 6ec485384556db535f60174c25e33c828f30027e..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/README.source +++ /dev/null @@ -1,9 +0,0 @@ -algorithms-library for Debian ------------------------------ - -This is a README.source - - - - -- Tomáš Pecka <peckato1@fit.cvut.cz> Sat, 10 Aug 2019 16:04:38 +0000 - diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library-dev-snapshot.install b/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library-dev-snapshot.install deleted file mode 100644 index 1b97f54c8a9467ff08a362fe3fda156389881204..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library-dev-snapshot.install +++ /dev/null @@ -1 +0,0 @@ -debian/tmp/usr/include/ /usr/include diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library-docs.docs b/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library-docs.docs deleted file mode 100644 index 7319041140c923b3b5d924a182434bc730514149..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library-docs.docs +++ /dev/null @@ -1,2 +0,0 @@ -README.source -README.Debian diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library-gui-snapshot.install b/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library-gui-snapshot.install deleted file mode 100644 index 1ffedb2cea9551a1b3d82300524468a85e984af6..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library-gui-snapshot.install +++ /dev/null @@ -1,2 +0,0 @@ -debian/tmp/usr/bin/agui2 /usr/bin/ -debian/tmp/usr/lib/libalib2gui* /usr/lib/ diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library-snapshot.install b/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library-snapshot.install deleted file mode 100644 index 332df522d80e56bba20f32d3f07714f06278158a..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library-snapshot.install +++ /dev/null @@ -1,20 +0,0 @@ -debian/tmp/usr/bin/aql2 /usr/bin/ -debian/tmp/usr/lib/libalib2abstraction.so* /usr/lib/ -debian/tmp/usr/lib/libalib2algo.so* /usr/lib/ -debian/tmp/usr/lib/libalib2algo_experimental.so* /usr/lib/ -debian/tmp/usr/lib/libalib2aux.so* /usr/lib/ -debian/tmp/usr/lib/libalib2cli.so* /usr/lib/ -debian/tmp/usr/lib/libalib2common.so* /usr/lib/ -debian/tmp/usr/lib/libalib2data.so* /usr/lib/ -debian/tmp/usr/lib/libalib2data_experimental.so* /usr/lib/ -debian/tmp/usr/lib/libalib2dummy.so* /usr/lib/ -debian/tmp/usr/lib/libalib2elgo.so* /usr/lib/ -debian/tmp/usr/lib/libalib2graph_algo.so* /usr/lib/ -debian/tmp/usr/lib/libalib2graph_data.so* /usr/lib/ -debian/tmp/usr/lib/libalib2measure.so* /usr/lib/ -debian/tmp/usr/lib/libalib2raw.so* /usr/lib/ -debian/tmp/usr/lib/libalib2raw_cli_integration.so* /usr/lib/ -debian/tmp/usr/lib/libalib2std.so* /usr/lib/ -debian/tmp/usr/lib/libalib2str.so* /usr/lib/ -debian/tmp/usr/lib/libalib2str_cli_integration.so* /usr/lib/ -debian/tmp/usr/lib/libalib2xml.so* /usr/lib/ diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library.doc-base.EX b/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library.doc-base.EX deleted file mode 100644 index 78e59d810862aae75d77fdbb9e70005b1018b064..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library.doc-base.EX +++ /dev/null @@ -1,20 +0,0 @@ -Document: algorithms-library -Title: Debian algorithms-library Manual -Author: <insert document author here> -Abstract: This manual describes what algorithms-library is - and how it can be used to - manage online manuals on Debian systems. -Section: unknown - -Format: debiandoc-sgml -Files: /usr/share/doc/algorithms-library/algorithms-library.sgml.gz - -Format: postscript -Files: /usr/share/doc/algorithms-library/algorithms-library.ps.gz - -Format: text -Files: /usr/share/doc/algorithms-library/algorithms-library.text.gz - -Format: HTML -Index: /usr/share/doc/algorithms-library/html/index.html -Files: /usr/share/doc/algorithms-library/html/*.html diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library.substvars b/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library.substvars deleted file mode 100644 index 978fc8b5a0eb2066fda8c4bba9792753005041b7..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/algorithms-library.substvars +++ /dev/null @@ -1,2 +0,0 @@ -misc:Depends= -misc:Pre-Depends= diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/changelog b/extra/scripts/CD/distrofiles/deb/snapshot/debian/changelog deleted file mode 100644 index 16ecd943691f6a4e3001fd89c442a670f8e7e01d..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -algorithms-library (0.0.0-1) unstable; urgency=medium - - * 0.0.0 released - - -- Tomáš Pecka <peckato1@fit.cvut.cz> Sat, 10 Aug 2019 16:04:38 +0000 diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/compat b/extra/scripts/CD/distrofiles/deb/snapshot/debian/compat deleted file mode 100644 index f599e28b8ab0d8c9c57a486c89c4a5132dcbd3b2..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/compat +++ /dev/null @@ -1 +0,0 @@ -10 diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/control b/extra/scripts/CD/distrofiles/deb/snapshot/debian/control deleted file mode 100644 index 45c30650adeb5aec147ef7ec7a306bb52f3fec32..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/control +++ /dev/null @@ -1,48 +0,0 @@ -Source: algorithms-library -Section: education -Maintainer: Tomáš Pecka <peckato1@fit.cvut.cz> -Uploaders: Tomáš Pecka <peckato1@fit.cvut.cz>, Jan TrávnĂÄŤek <travnja3@fit.cvut.cz> -Priority: optional -Standards-Version: 4.1.3 -Homepage: https://alt.pecka.me -Vcs-Browser: https://gitlab.fit.cvut.cz/algorithms-library-toolkit/automata-library -Vcs-Git: https://gitlab.fit.cvut.cz/algorithms-library-toolkit/automata-library.git -Build-Depends: debhelper (>= 10), - cmake (>= 3.9), - python3 (>= 3.4), - libxml2-dev, - libtclap-dev, - libreadline-dev, - qtbase5-dev (>= 5.7), - graphviz-dev, - libjsoncpp-dev - -Package: algorithms-library-snapshot -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} - libxml2, - libreadline7 | libreadline8 -Description: Algorithms Library is a science/education toolkit especially for the - string and tree area of computer science. - This package contains snapshot of the core and CLI. - -Package: algorithms-library-dev-snapshot -Architecture: any -Depends: algorithms-library-snapshot (= ${binary:Version}) -Description: Algorithms Library is a science/education toolkit especially for the - string and tree area of computer science. - This optional package contains snapshot of the development files. - -Package: algorithms-library-gui-snapshot -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} - libxml2, - graphviz, - libjsoncpp1, - libqt5core5a (>= 5.7), - libqt5widgets5 (>= 5.7), - libqt5xml5 (>= 5.7), - algorithms-library-snapshot (= ${binary:Version}) -Description: Algorithms Library is a science/education toolkit especially for the - string and tree area of computer science. - This optional package contains snapshot of the gui part. diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/copyright b/extra/scripts/CD/distrofiles/deb/snapshot/debian/copyright deleted file mode 100644 index bad461d6350d79e7a6fe1fd7e319ac8f9f6343d7..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/copyright +++ /dev/null @@ -1,47 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: algorithms-library -Source: <url://alt.pecka.me> - -# ----------------------------------------------------------------------------- - -Files: * -Copyright: 2012-2019 Jan TrávnĂÄŤek <jan.travnicek@fit.cvut.cz> - 2012-2019 Tomáš Pecka <tomas.pecka@fit.cvut.cz> - 2012-2013 Martin Žák -License: GPL-2+ - This package is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - . - This package is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - . - You should have received a copy of the GNU General Public License - along with this program. If not, see <https://www.gnu.org/licenses/> - . - On Debian systems, the complete text of the GNU General - Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". - -# ----------------------------------------------------------------------------- - -Files: debian/* -Copyright: 2019 Tomáš Pecka <tomas.pecka@fit.cvut.cz> -License: GPL-2+ - This package is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - . - This package is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - . - You should have received a copy of the GNU General Public License - along with this program. If not, see <https://www.gnu.org/licenses/> - . - On Debian systems, the complete text of the GNU General - Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/debhelper-build-stamp b/extra/scripts/CD/distrofiles/deb/snapshot/debian/debhelper-build-stamp deleted file mode 100644 index 9c48c55b7bd449479418a13ada618363e86ab63e..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/debhelper-build-stamp +++ /dev/null @@ -1 +0,0 @@ -algorithms-library diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/dirs b/extra/scripts/CD/distrofiles/deb/snapshot/debian/dirs deleted file mode 100644 index 527b78f2d8a0d7135959c78f50c276a02ddf0171..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/dirs +++ /dev/null @@ -1,2 +0,0 @@ -usr/bin -usr/lib diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/manpage.1.ex b/extra/scripts/CD/distrofiles/deb/snapshot/debian/manpage.1.ex deleted file mode 100644 index f35db5f62f6c2c00203f6aeeb3619bb326000a3c..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/manpage.1.ex +++ /dev/null @@ -1,56 +0,0 @@ -.\" Hey, EMACS: -*- nroff -*- -.\" (C) Copyright 2019 Tomáš Pecka <peckato1@fit.cvut.cz>, -.\" -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH Algorithms-library SECTION "August 10 2019" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp <n> insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NAME -algorithms-library \- program to do something -.SH SYNOPSIS -.B algorithms-library -.RI [ options ] " files" ... -.br -.B bar -.RI [ options ] " files" ... -.SH DESCRIPTION -This manual page documents briefly the -.B algorithms-library -and -.B bar -commands. -.PP -.\" TeX users may be more comfortable with the \fB<whatever>\fP and -.\" \fI<whatever>\fP escape sequences to invode bold face and italics, -.\" respectively. -\fBalgorithms-library\fP is a program that... -.SH OPTIONS -These programs follow the usual GNU command line syntax, with long -options starting with two dashes (`-'). -A summary of options is included below. -For a complete description, see the Info files. -.TP -.B \-h, \-\-help -Show summary of options. -.TP -.B \-v, \-\-version -Show version of program. -.SH SEE ALSO -.BR bar (1), -.BR baz (1). -.br -The programs are documented fully by -.IR "The Rise and Fall of a Fooish Bar" , -available via the Info system. diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/manpage.sgml.ex b/extra/scripts/CD/distrofiles/deb/snapshot/debian/manpage.sgml.ex deleted file mode 100644 index b96229a4acb0de1609da8253dec1e2a7ef69b7a0..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/manpage.sgml.ex +++ /dev/null @@ -1,154 +0,0 @@ -<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ - -<!-- Process this file with docbook-to-man to generate an nroff manual - page: `docbook-to-man manpage.sgml > manpage.1'. You may view - the manual page with: `docbook-to-man manpage.sgml | nroff -man | - less'. A typical entry in a Makefile or Makefile.am is: - -manpage.1: manpage.sgml - docbook-to-man $< > $@ - - - The docbook-to-man binary is found in the docbook-to-man package. - Please remember that if you create the nroff version in one of the - debian/rules file targets (such as build), you will need to include - docbook-to-man in your Build-Depends control field. - - --> - - <!-- Fill in your name for FIRSTNAME and SURNAME. --> - <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>"> - <!ENTITY dhsurname "<surname>SURNAME</surname>"> - <!-- Please adjust the date whenever revising the manpage. --> - <!ENTITY dhdate "<date>August 10 2019</date>"> - <!-- SECTION should be 1-8, maybe w/ subsection other parameters are - allowed: see man(7), man(1). --> - <!ENTITY dhsection "<manvolnum>SECTION</manvolnum>"> - <!ENTITY dhemail "<email>peckato1@fit.cvut.cz</email>"> - <!ENTITY dhusername "peckato1"> - <!ENTITY dhucpackage "<refentrytitle>Algorithms-library</refentrytitle>"> - <!ENTITY dhpackage "algorithms-library"> - - <!ENTITY debian "<productname>Debian</productname>"> - <!ENTITY gnu "<acronym>GNU</acronym>"> - <!ENTITY gpl "&gnu; <acronym>GPL</acronym>"> -]> - -<refentry> - <refentryinfo> - <address> - &dhemail; - </address> - <author> - &dhfirstname; - &dhsurname; - </author> - <copyright> - <year>2003</year> - <holder>&dhusername;</holder> - </copyright> - &dhdate; - </refentryinfo> - <refmeta> - &dhucpackage; - - &dhsection; - </refmeta> - <refnamediv> - <refname>&dhpackage;</refname> - - <refpurpose>program to do something</refpurpose> - </refnamediv> - <refsynopsisdiv> - <cmdsynopsis> - <command>&dhpackage;</command> - - <arg><option>-e <replaceable>this</replaceable></option></arg> - - <arg><option>--example <replaceable>that</replaceable></option></arg> - </cmdsynopsis> - </refsynopsisdiv> - <refsect1> - <title>DESCRIPTION</title> - - <para>This manual page documents briefly the - <command>&dhpackage;</command> and <command>bar</command> - commands.</para> - - <para>This manual page was written for the &debian; distribution - because the original program does not have a manual page. - Instead, it has documentation in the &gnu; - <application>Info</application> format; see below.</para> - - <para><command>&dhpackage;</command> is a program that...</para> - - </refsect1> - <refsect1> - <title>OPTIONS</title> - - <para>These programs follow the usual &gnu; command line syntax, - with long options starting with two dashes (`-'). A summary of - options is included below. For a complete description, see the - <application>Info</application> files.</para> - - <variablelist> - <varlistentry> - <term><option>-h</option> - <option>--help</option> - </term> - <listitem> - <para>Show summary of options.</para> - </listitem> - </varlistentry> - <varlistentry> - <term><option>-v</option> - <option>--version</option> - </term> - <listitem> - <para>Show version of program.</para> - </listitem> - </varlistentry> - </variablelist> - </refsect1> - <refsect1> - <title>SEE ALSO</title> - - <para>bar (1), baz (1).</para> - - <para>The programs are documented fully by <citetitle>The Rise and - Fall of a Fooish Bar</citetitle> available via the - <application>Info</application> system.</para> - </refsect1> - <refsect1> - <title>AUTHOR</title> - - <para>This manual page was written by &dhusername; &dhemail; for - the &debian; system (and may be used by others). Permission is - granted to copy, distribute and/or modify this document under - the terms of the &gnu; General Public License, Version 2 any - later version published by the Free Software Foundation. - </para> - <para> - On Debian systems, the complete text of the GNU General Public - License can be found in /usr/share/common-licenses/GPL. - </para> - - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:2 -sgml-indent-data:t -sgml-parent-document:nil -sgml-default-dtd-file:nil -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: ---> diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/manpage.xml.ex b/extra/scripts/CD/distrofiles/deb/snapshot/debian/manpage.xml.ex deleted file mode 100644 index e8d43592ededff3de8a10490e2fb32fae4a57ebd..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/manpage.xml.ex +++ /dev/null @@ -1,291 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" -"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ - -<!-- - -`xsltproc -''-nonet \ - -''-param man.charmap.use.subset "0" \ - -''-param make.year.ranges "1" \ - -''-param make.single.year.ranges "1" \ - /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \ - manpage.xml' - -A manual page <package>.<section> will be generated. You may view the -manual page with: nroff -man <package>.<section> | less'. A typical entry -in a Makefile or Makefile.am is: - -DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl -XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" - -manpage.1: manpage.xml - $(XP) $(DB2MAN) $< - -The xsltproc binary is found in the xsltproc package. The XSL files are in -docbook-xsl. A description of the parameters you can use can be found in the -docbook-xsl-doc-* packages. Please remember that if you create the nroff -version in one of the debian/rules file targets (such as build), you will need -to include xsltproc and docbook-xsl in your Build-Depends control field. -Alternatively use the xmlto command/package. That will also automatically -pull in xsltproc and docbook-xsl. - -Notes for using docbook2x: docbook2x-man does not automatically create the -AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as -<refsect1> ... </refsect1>. - -To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections -read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be -found in the docbook-xsl-doc-html package. - -Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` - -General documentation about man-pages and man-page-formatting: -man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ - ---> - - <!-- Fill in your name for FIRSTNAME and SURNAME. --> - <!ENTITY dhfirstname "FIRSTNAME"> - <!ENTITY dhsurname "SURNAME"> - <!-- dhusername could also be set to "&dhfirstname; &dhsurname;". --> - <!ENTITY dhusername "peckato1"> - <!ENTITY dhemail "peckato1@fit.cvut.cz"> - <!-- SECTION should be 1-8, maybe w/ subsection other parameters are - allowed: see man(7), man(1) and - http://www.tldp.org/HOWTO/Man-Page/q2.html. --> - <!ENTITY dhsection "SECTION"> - <!-- TITLE should be something like "User commands" or similar (see - http://www.tldp.org/HOWTO/Man-Page/q2.html). --> - <!ENTITY dhtitle "algorithms-library User Manual"> - <!ENTITY dhucpackage "Algorithms-library"> - <!ENTITY dhpackage "algorithms-library"> -]> - -<refentry> - <refentryinfo> - <title>&dhtitle;</title> - <productname>&dhpackage;</productname> - <authorgroup> - <author> - <firstname>&dhfirstname;</firstname> - <surname>&dhsurname;</surname> - <contrib>Wrote this manpage for the Debian system.</contrib> - <address> - <email>&dhemail;</email> - </address> - </author> - </authorgroup> - <copyright> - <year>2007</year> - <holder>&dhusername;</holder> - </copyright> - <legalnotice> - <para>This manual page was written for the Debian system - (and may be used by others).</para> - <para>Permission is granted to copy, distribute and/or modify this - document under the terms of the GNU General Public License, - Version 2 or (at your option) any later version published by - the Free Software Foundation.</para> - <para>On Debian systems, the complete text of the GNU General Public - License can be found in - <filename>/usr/share/common-licenses/GPL</filename>.</para> - </legalnotice> - </refentryinfo> - <refmeta> - <refentrytitle>&dhucpackage;</refentrytitle> - <manvolnum>&dhsection;</manvolnum> - </refmeta> - <refnamediv> - <refname>&dhpackage;</refname> - <refpurpose>program to do something</refpurpose> - </refnamediv> - <refsynopsisdiv> - <cmdsynopsis> - <command>&dhpackage;</command> - <!-- These are several examples, how syntaxes could look --> - <arg choice="plain"><option>-e <replaceable>this</replaceable></option></arg> - <arg choice="opt"><option>--example=<parameter>that</parameter></option></arg> - <arg choice="opt"> - <group choice="req"> - <arg choice="plain"><option>-e</option></arg> - <arg choice="plain"><option>--example</option></arg> - </group> - <replaceable class="option">this</replaceable> - </arg> - <arg choice="opt"> - <group choice="req"> - <arg choice="plain"><option>-e</option></arg> - <arg choice="plain"><option>--example</option></arg> - </group> - <group choice="req"> - <arg choice="plain"><replaceable>this</replaceable></arg> - <arg choice="plain"><replaceable>that</replaceable></arg> - </group> - </arg> - </cmdsynopsis> - <cmdsynopsis> - <command>&dhpackage;</command> - <!-- Normally the help and version options make the programs stop - right after outputting the requested information. --> - <group choice="opt"> - <arg choice="plain"> - <group choice="req"> - <arg choice="plain"><option>-h</option></arg> - <arg choice="plain"><option>--help</option></arg> - </group> - </arg> - <arg choice="plain"> - <group choice="req"> - <arg choice="plain"><option>-v</option></arg> - <arg choice="plain"><option>--version</option></arg> - </group> - </arg> - </group> - </cmdsynopsis> - </refsynopsisdiv> - <refsect1 id="description"> - <title>DESCRIPTION</title> - <para>This manual page documents briefly the - <command>&dhpackage;</command> and <command>bar</command> - commands.</para> - <para>This manual page was written for the Debian distribution - because the original program does not have a manual page. - Instead, it has documentation in the GNU <citerefentry> - <refentrytitle>info</refentrytitle> - <manvolnum>1</manvolnum> - </citerefentry> format; see below.</para> - <para><command>&dhpackage;</command> is a program that...</para> - </refsect1> - <refsect1 id="options"> - <title>OPTIONS</title> - <para>The program follows the usual GNU command line syntax, - with long options starting with two dashes (`-'). A summary of - options is included below. For a complete description, see the - <citerefentry> - <refentrytitle>info</refentrytitle> - <manvolnum>1</manvolnum> - </citerefentry> files.</para> - <variablelist> - <!-- Use the variablelist.term.separator and the - variablelist.term.break.after parameters to - control the term elements. --> - <varlistentry> - <term><option>-e <replaceable>this</replaceable></option></term> - <term><option>--example=<replaceable>that</replaceable></option></term> - <listitem> - <para>Does this and that.</para> - </listitem> - </varlistentry> - <varlistentry> - <term><option>-h</option></term> - <term><option>--help</option></term> - <listitem> - <para>Show summary of options.</para> - </listitem> - </varlistentry> - <varlistentry> - <term><option>-v</option></term> - <term><option>--version</option></term> - <listitem> - <para>Show version of program.</para> - </listitem> - </varlistentry> - </variablelist> - </refsect1> - <refsect1 id="files"> - <title>FILES</title> - <variablelist> - <varlistentry> - <term><filename>/etc/foo.conf</filename></term> - <listitem> - <para>The system-wide configuration file to control the - behaviour of <application>&dhpackage;</application>. See - <citerefentry> - <refentrytitle>foo.conf</refentrytitle> - <manvolnum>5</manvolnum> - </citerefentry> for further details.</para> - </listitem> - </varlistentry> - <varlistentry> - <term><filename>${HOME}/.foo.conf</filename></term> - <listitem> - <para>The per-user configuration file to control the - behaviour of <application>&dhpackage;</application>. See - <citerefentry> - <refentrytitle>foo.conf</refentrytitle> - <manvolnum>5</manvolnum> - </citerefentry> for further details.</para> - </listitem> - </varlistentry> - </variablelist> - </refsect1> - <refsect1 id="environment"> - <title>ENVIRONMENT</title> - <variablelist> - <varlistentry> - <term><envar>FOO_CONF</envar></term> - <listitem> - <para>If used, the defined file is used as configuration - file (see also <xref linkend="files"/>).</para> - </listitem> - </varlistentry> - </variablelist> - </refsect1> - <refsect1 id="diagnostics"> - <title>DIAGNOSTICS</title> - <para>The following diagnostics may be issued - on <filename class="devicefile">stderr</filename>:</para> - <variablelist> - <varlistentry> - <term><errortext>Bad configuration file. Exiting.</errortext></term> - <listitem> - <para>The configuration file seems to contain a broken configuration - line. Use the <option>--verbose</option> option, to get more info. - </para> - </listitem> - </varlistentry> - </variablelist> - <para><command>&dhpackage;</command> provides some return codes, that can - be used in scripts:</para> - <segmentedlist> - <segtitle>Code</segtitle> - <segtitle>Diagnostic</segtitle> - <seglistitem> - <seg><errorcode>0</errorcode></seg> - <seg>Program exited successfully.</seg> - </seglistitem> - <seglistitem> - <seg><errorcode>1</errorcode></seg> - <seg>The configuration file seems to be broken.</seg> - </seglistitem> - </segmentedlist> - </refsect1> - <refsect1 id="bugs"> - <!-- Or use this section to tell about upstream BTS. --> - <title>BUGS</title> - <para>The program is currently limited to only work - with the <package>foobar</package> library.</para> - <para>The upstreams <acronym>BTS</acronym> can be found - at <ulink url="http://bugzilla.foo.tld"/>.</para> - </refsect1> - <refsect1 id="see_also"> - <title>SEE ALSO</title> - <!-- In alpabetical order. --> - <para><citerefentry> - <refentrytitle>bar</refentrytitle> - <manvolnum>1</manvolnum> - </citerefentry>, <citerefentry> - <refentrytitle>baz</refentrytitle> - <manvolnum>1</manvolnum> - </citerefentry>, <citerefentry> - <refentrytitle>foo.conf</refentrytitle> - <manvolnum>5</manvolnum> - </citerefentry></para> - <para>The programs are documented fully by <citetitle>The Rise and - Fall of a Fooish Bar</citetitle> available via the <citerefentry> - <refentrytitle>info</refentrytitle> - <manvolnum>1</manvolnum> - </citerefentry> system.</para> - </refsect1> -</refentry> - diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/postrm.ex b/extra/scripts/CD/distrofiles/deb/snapshot/debian/postrm.ex deleted file mode 100644 index bbe8b8629bae02d85c10c7d764a8c1d983ae30f8..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/postrm.ex +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -# postrm script for algorithms-library -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * <postrm> `remove' -# * <postrm> `purge' -# * <old-postrm> `upgrade' <new-version> -# * <new-postrm> `failed-upgrade' <old-version> -# * <new-postrm> `abort-install' -# * <new-postrm> `abort-install' <old-version> -# * <new-postrm> `abort-upgrade' <old-version> -# * <disappearer's-postrm> `disappear' <overwriter> -# <overwriter-version> -# for details, see https://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/preinst.ex b/extra/scripts/CD/distrofiles/deb/snapshot/debian/preinst.ex deleted file mode 100644 index cdffafa097ab75448508bad78c782dee54a1e89d..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/preinst.ex +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# preinst script for algorithms-library -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * <new-preinst> `install' -# * <new-preinst> `install' <old-version> -# * <new-preinst> `upgrade' <old-version> -# * <old-preinst> `abort-upgrade' <new-version> -# for details, see https://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - install|upgrade) - ;; - - abort-upgrade) - ;; - - *) - echo "preinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/prerm.ex b/extra/scripts/CD/distrofiles/deb/snapshot/debian/prerm.ex deleted file mode 100644 index da7df7e35ce82e0e0911c622ee64b879da48f31d..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/prerm.ex +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh -# prerm script for algorithms-library -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * <prerm> `remove' -# * <old-prerm> `upgrade' <new-version> -# * <new-prerm> `failed-upgrade' <old-version> -# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> -# * <deconfigured's-prerm> `deconfigure' `in-favour' -# <package-being-installed> <version> `removing' -# <conflicting-package> <version> -# for details, see https://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - remove|upgrade|deconfigure) - ;; - - failed-upgrade) - ;; - - *) - echo "prerm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/rules b/extra/scripts/CD/distrofiles/deb/snapshot/debian/rules deleted file mode 100755 index 43fc5fa8473dc80ecbd4e6b94fffee286fecce87..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/rules +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/make -f -# See debhelper(7) (uncomment to enable) -# output every command that modifies files on the build system. -export DH_VERBOSE = 1 -export CXXFLAGS= - - -# see FEATURE AREAS in dpkg-buildflags(1) -#export DEB_BUILD_MAINT_OPTIONS = hardening=+all - -# see ENVIRONMENT in dpkg-buildflags(1) -# package maintainers to append CFLAGS -#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -# package maintainers to append LDFLAGS -#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed - -%: - dh $@ --buildsystem=cmake --builddirectory=build - -override_dh_strip: - dh_strip $@ - -override_dh_auto_configure: - ./CMake/generate.py -wm - dh_auto_configure -- -DBUILD_TYPE=Snapshot - -#override_dh_auto_test: -# echo "Skipping tests" diff --git a/extra/scripts/CD/distrofiles/deb/snapshot/debian/source/format b/extra/scripts/CD/distrofiles/deb/snapshot/debian/source/format deleted file mode 100644 index 163aaf8d82b6c54f23c45f32895dbdfdcc27b047..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/distrofiles/deb/snapshot/debian/source/format +++ /dev/null @@ -1 +0,0 @@ -3.0 (quilt) diff --git a/extra/scripts/CD/packaging/package-archlinux.sh b/extra/scripts/CD/packaging/package-archlinux.sh deleted file mode 100644 index 88e07449cd2a16271eb81bc9963430c5f0618a44..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/packaging/package-archlinux.sh +++ /dev/null @@ -1,57 +0,0 @@ -# $GIT_ROOT -# $TYPE (snapshot/stable) -# $CWD - -before () { - # prepare base-devel. gpg, git - pacman -Suy --noconfirm --needed git gnupg sudo base-devel namcap - useradd builder -m && passwd -d builder && printf 'builder ALL=(ALL) ALL\n' | tee -a /etc/sudoers - - export -f gpg_import - su builder -c '/bin/sh -c gpg_import' - - echo "MAKEFLAGS=\"-j$(grep -c processor /proc/cpuinfo)\"" >> /etc/makepkg.conf -} - -package () { - set -e - - # prepare PKGBUILD - cp $GIT_ROOT/extra/scripts/CD/distrofiles/arch/$TYPE/PKGBUILD . - chown builder:builder PKGBUILD - - # makepkg Outputs: - # - FOO.pkg.tar.xz - # - FOO.pkg.tar.xz.sig - sudo -u builder -- makepkg --syncdeps --noconfirm --sign --key $GPG_KEYID - - set +e -} - -deploy () { - set -e - MOUNTPOINTS="-v /srv/repository/archlinux/x86_64:/repository -v$(pwd):/build -v/root/.gnupg/:/root/.gnupg/" - DOCKER_IMAGE="archlinux/base" - DOCKER_CMD="docker run --rm $MOUNTPOINTS $DOCKER_IMAGE" - - REPO_DIR="/repository" - REPO_DB="/repository/algorithms-library.db.tar.gz" - - # docker login gitlab.fit.cvut.cz:5000 -u "$DOCKER_REGISTRY_USERNAME" -p "$DOCKER_REGISTRY_TOKEN" - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker pull "$DOCKER_IMAGE:latest" - - if [[ $TYPE == "snapshot" ]]; then - REMOVE="algorithms-library-gui-snapshot algorithms-library-snapshot" - else - REMOVE="algorithms-library-gui algorithms-library" - fi - - $DOCKER_CMD pacman -Suy --noconfirm --needed gnupg grep - for file in *.tar.xz; do - $DOCKER_CMD bash -c "cd $REPO_DIR && [[ -e $REPO_DB ]] && repo-remove -v -s -k $GPG_KEYID $REPO_DB $REMOVE || true" - $DOCKER_CMD bash -c "for file in /build/*.tar.xz; do cp \$file $REPO_DIR/ && cp \$file.sig $REPO_DIR/ && repo-add -R -v -s -k $GPG_KEYID $REPO_DB $(basename "\$file"); done" - done - - set +e -} diff --git a/extra/scripts/CD/packaging/package-debian.sh b/extra/scripts/CD/packaging/package-debian.sh deleted file mode 100644 index b1c800e17110ea002ffd784c6b151aa142703b7f..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/packaging/package-debian.sh +++ /dev/null @@ -1,79 +0,0 @@ -before () { - apt-get update - apt-get install -y dh-make debsigs devscripts build-essential git gnupg - gpg_import - - apt-get install -y cmake libxml2-dev libtclap-dev libreadline-dev qtbase5-dev graphviz-dev libjsoncpp-dev -} - -package () { - set -e - - # create orig file - cp $ARCHIVE ${ARCHIVE%.tar.gz}.orig.tar.gz - - # extract sources and build - tar xzvf $ARCHIVE - pushd $ARCHIVE_DIR - - cp -r $GIT_ROOT/extra/scripts/CD/distrofiles/deb/$TYPE/debian . - - if [[ -z "$DISTRIBUTION" ]]; then - echo "Distribution variable not set" - exit 1 - fi - - # snapshot changelog update - if [[ $TYPE == "snapshot" ]]; then - CHANGELOG=$(cat debian/changelog) - cat > debian/changelog <<DOC -algorithms-library ($VERSION~$DISTRIBUTION) unstable; urgency=medium - - * Snapshot release changelog bump. - - -- Tomáš Pecka <peckato1@fit.cvut.cz> $(date "+%a, %d %b %Y %H:%M:%S %z") - -$CHANGELOG -DOC - fi - - debuild -b -us -k$GPG_KEYID -j$(grep -c processor /proc/cpuinfo) - popd - - set +e -} - -deploy () { - set -e - # comes from gitlab-ci: - # DISTRIBUTION= - - MOUNTPOINTS="-v /srv/repository/debian:/repository -v$(pwd):/build -v/root/.gnupg/:/root/.gnupg/" - DOCKER_IMAGE="gitlab.fit.cvut.cz:5000/algorithms-library-toolkit/ci-docker-images/repository/aptly" - DOCKER_CMD="docker run --rm $MOUNTPOINTS $DOCKER_IMAGE" - - SNAPSHOT="snapshot-$DISTRIBUTION" - - if [[ $TYPE == "snapshot" ]]; then - PACKAGE_REMOVE="algorithms-library-snapshot algorithms-library-dev-snapshot algorithms-library-gui-snapshot" - PACKAGE_DBGSYM="algorithms-library-snapshot-dbgsym algorithms-library-gui-snapshot-dbgsym" - else - PACKAGE_REMOVE="algorithms-library algorithms-library-dev algorithms-library-gui" - PACKAGE_DBGSYM="algorithms-library-dbgsym algorithms-library-gui-dbgsym" - fi - - # docker login gitlab.fit.cvut.cz:5000 -u "$DOCKER_REGISTRY_USERNAME" -p "$DOCKER_REGISTRY_TOKEN" - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker pull "$DOCKER_IMAGE:latest" - - $DOCKER_CMD aptly repo create $DISTRIBUTION || true - $DOCKER_CMD aptly publish drop "$DISTRIBUTION" filesystem:dir: || true - $DOCKER_CMD aptly snapshot drop "$SNAPSHOT" || true - $DOCKER_CMD aptly repo remove $DISTRIBUTION $PACKAGE_REMOVE || true - $DOCKER_CMD bash -c "aptly repo include -repo="$DISTRIBUTION" /build/*.changes" - $DOCKER_CMD aptly repo remove $DISTRIBUTION $PACKAGE_DBGSYM - $DOCKER_CMD aptly repo show -with-packages "$DISTRIBUTION" - $DOCKER_CMD aptly snapshot create -architectures=amd64 "$SNAPSHOT" from repo "$DISTRIBUTION" - $DOCKER_CMD aptly publish snapshot -architectures=amd64 -batch -gpg-key="$GPG_KEYID" -distribution=$DISTRIBUTION $SNAPSHOT filesystem:dir: - set +e -} diff --git a/extra/scripts/CD/packaging/package-docker.sh b/extra/scripts/CD/packaging/package-docker.sh deleted file mode 100644 index 93f61e7d3556bd4318a329022f5450b7b38090be..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/packaging/package-docker.sh +++ /dev/null @@ -1,76 +0,0 @@ -before () { - :; -} - -package () { - set -e - - IMAGE_CLI=$CI_REGISTRY_IMAGE/cli - IMAGE_GUI=$CI_REGISTRY_IMAGE/gui - IMAGE_ALL=$CI_REGISTRY_IMAGE - TAG_SNAPSHOT=snapshot - TAG_STABLE=$CI_COMMIT_REF_NAME - TAG_LATEST=latest - - BUILD_ALL=all_build - BUILD_CLI=cli_build - - if [[ $TYPE == "snapshot" ]]; then - DOCKERFILE="Dockerfile.snapshot" - elif [[ $TYPE == "stable" ]]; then - DOCKERFILE="Dockerfile.stable" - fi - - docker build --target=deploy-cli -f $GIT_ROOT/extra/docker/$DOCKERFILE -t $BUILD_CLI . - docker build --target=deploy-all -f $GIT_ROOT/extra/docker/$DOCKERFILE -t $BUILD_ALL . - - docker run $BUILD_CLI /usr/bin/aql2 --help - docker run $BUILD_ALL /usr/bin/aql2 --help - - if [[ $TYPE == "snapshot" ]]; then - docker tag "$BUILD_CLI" "$IMAGE_CLI:$TAG_SNAPSHOT" - docker tag "$BUILD_ALL" "$IMAGE_GUI:$TAG_SNAPSHOT" # gui-version is now only a symlink to all-version - docker tag "$BUILD_ALL" "$IMAGE_ALL:$TAG_SNAPSHOT" - - docker save -o images.tar \ - "$IMAGE_CLI:$TAG_SNAPSHOT" \ - "$IMAGE_GUI:$TAG_SNAPSHOT" \ - "$IMAGE_ALL:$TAG_SNAPSHOT" - - elif [[ $TYPE == "stable" ]]; then - docker tag "$BUILD_CLI" "$IMAGE_CLI:$TAG_STABLE" - docker tag "$BUILD_CLI" "$IMAGE_CLI:$TAG_LATEST" - docker tag "$BUILD_ALL" "$IMAGE_GUI:$TAG_STABLE" # gui-version is now only a symlink to all-version - docker tag "$BUILD_ALL" "$IMAGE_GUI:$TAG_LATEST" # gui-version is now only a symlink to all-version - docker tag "$BUILD_ALL" "$IMAGE_ALL:$TAG_STABLE" - docker tag "$BUILD_ALL" "$IMAGE_ALL:$TAG_LATEST" - - docker save -o images.tar \ - "$IMAGE_CLI:$TAG_STABLE" "$IMAGE_CLI:$TAG_LATEST" \ - "$IMAGE_GUI:$TAG_STABLE" "$IMAGE_GUI:$TAG_LATEST" \ - "$IMAGE_ALL:$TAG_STABLE" "$IMAGE_ALL:$TAG_LATEST" - fi - - set +e -} - -deploy () { - set -e - - docker load -i images.tar - - if [[ $TYPE == "snapshot" ]]; then - docker push $CI_REGISTRY_IMAGE/cli:snapshot - docker push $CI_REGISTRY_IMAGE/gui:snapshot - docker push $CI_REGISTRY_IMAGE:snapshot - else - docker push $CI_REGISTRY_IMAGE/cli:latest - docker push $CI_REGISTRY_IMAGE/gui:latest - docker push $CI_REGISTRY_IMAGE:latest - docker push $CI_REGISTRY_IMAGE/cli:$CI_COMMIT_REF_NAME - docker push $CI_REGISTRY_IMAGE/gui:$CI_COMMIT_REF_NAME - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME - fi - - set +e -} diff --git a/extra/scripts/CD/packaging/package-sources.sh b/extra/scripts/CD/packaging/package-sources.sh deleted file mode 100644 index 2a12d52b55b3f382dca6821f11e42605ff7ee8da..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/packaging/package-sources.sh +++ /dev/null @@ -1,27 +0,0 @@ -before () { - apk add --no-cache git gnupg - - gpg_import -} - -package () { - set -e - - # just sign - gpg --armor --detach-sig -o $ARCHIVE.sig $ARCHIVE - - set +e -} - -deploy () { - set -e - MOUNTPOINTS="-v /srv/repository/sources:/repository -v$(pwd):/build -v/root/.gnupg/:/root/.gnupg/" - DOCKER_IMAGE="alpine" - DOCKER_CMD="docker run --rm $MOUNTPOINTS $DOCKER_IMAGE" - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker pull "$DOCKER_IMAGE:latest" - - $DOCKER_CMD sh -c "mv /build/*.tar.gz* /repository/" - set +e -} diff --git a/extra/scripts/CD/packaging/package.sh b/extra/scripts/CD/packaging/package.sh deleted file mode 100755 index 3bdc7a5ae82d211cbf3d84d84acc90def6903868..0000000000000000000000000000000000000000 --- a/extra/scripts/CD/packaging/package.sh +++ /dev/null @@ -1,142 +0,0 @@ -#!/bin/bash - -usage_and_exit () { - cat >&2 << EOF -Usage: $0 TYPE TARGET JOB CWD - -CD packaging and deploying script wrapper. - -Arguments: - - TYPE Either 'snapshot' or 'stable'. - TARGET Target distro. Determines script to be called. - JOB Either 'package' or 'deploy' - CWD Working directory. - -EOF - exit 1 -} - -usage_and_exit_with_msg () { - echo Error: "$1" >&2 - echo "" >&2 - usage_and_exit -} - -exit_with_msg () { - echo Error: "$1" >&2 - exit $2 -} - -tolower () { - echo "$1" | tr '[:upper:]' '[:lower:]' -} - -function_exists () { - type "$1" >/dev/null 2>/dev/null -} - -# --------------------------------------------------------------------------------------------------------------------- - -gpg_import () { - if [[ -x /usr/libexec/gpg-preset-passphrase ]]; then - GPGPP=/usr/libexec/gpg-preset-passphrase - elif [[ -x /usr/lib/gnupg/gpg-preset-passphrase ]]; then - GPGPP=/usr/lib/gnupg/gpg-preset-passphrase - else - echo "gpg-preset-passphrase not found" - exit 1 - fi - - # initialize agent - mkdir -p ~/.gnupg - echo -ne 'allow-preset-passphrase\nmax-cache-ttl 60480000\ndefault-cache-ttl 60480000\n' > ~/.gnupg/gpg-agent.conf - gpg-connect-agent reloadagent /bye - - # import key - echo "$GPG_PRIVATE_KEY" | gpg --no-tty --batch --import - - KEYGRIP=$(gpg --with-keygrip -k $GPG_KEYID | grep Keygrip | cut -d= -f2 | tr -d ' ') - $GPGPP --preset --passphrase "$GPG_PASSPHRASE" "$KEYGRIP" -} - -# --------------------------------------------------------------------------------------------------------------------- - -SCRIPT_ROOT=$(realpath $(dirname $0)) -GIT_ROOT=$(realpath "$SCRIPT_ROOT"/../../../../) -TYPE= -TARGET= -CWD= - -# --------------------------------------------------------------------------------------------------------------------- -# check input -[[ $# -ne 4 ]] && usage_and_exit - -TYPE=$(tolower "$1") -[[ $TYPE != "snapshot" && $TYPE != "stable" ]] && usage_and_exit_with_msg "Invalid type." - -TARGET=$(tolower "$2") -DISTROSCRIPT="$SCRIPT_ROOT/package-$TARGET.sh" -[[ ! -e "$DISTROSCRIPT" ]] && usage_and_exit_with_msg "Invalid distro. File $(basename $DISTROSCRIPT) not found." - -JOB=$(tolower "$3") -[[ $JOB != "package" && $JOB != "deploy" ]] && usage_and_exit_with_msg "Invalid job." - -CWD=$(realpath "$4") -[[ ! -d "$CWD" ]] && usage_and_exit_with_msg "Directory $4 does not exist". - -# --------------------------------------------------------------------------------------------------------------------- -# source distroscript - -echo "Sourcing '$DISTROSCRIPT'" -source "$DISTROSCRIPT" - -function_exists "package" || exit_with_msg "Function package() not found in package-$TARGET.sh" 2 -function_exists "before" || exit_with_msg "Function before() not found in package-$TARGET.sh" 2 -function_exists "deploy" || exit_with_msg "Function deploy() not found in package-$TARGET.sh" 2 - -# --------------------------------------------------------------------------------------------------------------------- -# run before... - -# --------------------------------------------------------------------------------------------------------------------- -# create archive inside $CWD - -if [[ $JOB == "package" ]]; then - before - cd $GIT_ROOT - - if [[ $TYPE == "snapshot" ]]; then - VERSION="$(git describe --long --tags --match="v*" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')" - elif [[ $TYPE == "stable" ]]; then - VERSION="$(git describe --tags --match="v*" --abbrev=0 | sed 's/^v//g')" - fi - - ARCHIVE_DIR="algorithms-library_$VERSION" - ARCHIVE="$ARCHIVE_DIR.tar.gz" - echo "Creating archive $ARCHIVE" - - if [[ $TYPE == "snapshot" ]]; then - git archive --format=tar.gz --prefix="$ARCHIVE_DIR/" HEAD -o $CWD/$ARCHIVE - elif [[ $TYPE == "stable" ]]; then - git archive --format=tar.gz --prefix="$ARCHIVE_DIR/" $(git describe --tags --match="v*" --abbrev=0) -o $CWD/$ARCHIVE - fi - - echo "Start packaging..." - echo " - \$TARGET : $TARGET" - echo " - \$TYPE : $TYPE" - echo " - \$GIT_ROOT: $GIT_ROOT" - echo " - \$CWD : $CWD" - echo " - \$ARCHIVE : $ARCHIVE" - - # change directory and run - cd $CWD - package - exit $? -else - echo "Start deploying..." - echo " - \$TARGET : $TARGET" - echo " - \$TYPE : $TYPE" - echo " - \$CWD : $CWD" - - deploy - exit $? -fi