version and release automatized
This commit is contained in:
+3
-6
@@ -9,7 +9,7 @@ steps:
|
|||||||
sonar_host: https://sonar.hatthieves.es
|
sonar_host: https://sonar.hatthieves.es
|
||||||
sonar_token:
|
sonar_token:
|
||||||
from_secret: sonar_token
|
from_secret: sonar_token
|
||||||
sources: ./
|
sources: .
|
||||||
|
|
||||||
- name: Build Ubuntu deb package
|
- name: Build Ubuntu deb package
|
||||||
image: ubuntu
|
image: ubuntu
|
||||||
@@ -17,12 +17,9 @@ steps:
|
|||||||
- name: deb_packages
|
- name: deb_packages
|
||||||
path: /debian
|
path: /debian
|
||||||
commands:
|
commands:
|
||||||
- export DEBIAN_FRONTEND=noninteractive
|
- ./build-deb.sh
|
||||||
- apt-get update && apt-get install -y dpkg-dev debhelper
|
|
||||||
- dpkg-buildpackage -us -uc
|
|
||||||
- cp ../*.deb .
|
|
||||||
- dpkg -i *.deb
|
- dpkg -i *.deb
|
||||||
- rm -rf /debian/* && cp *.deb /debian
|
- cp *.deb /debian && rm *.deb
|
||||||
- lch -v
|
- lch -v
|
||||||
|
|
||||||
- name: Build CentOS rpm package
|
- name: Build CentOS rpm package
|
||||||
|
|||||||
Executable
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
VERSION=$(cat VERSION)r$(cat RELEASE)
|
||||||
|
mkdir -p "lch-$VERSION/DEBIAN"
|
||||||
|
echo -e "Package: lch
|
||||||
|
Version: $VERSION
|
||||||
|
Architecture: all
|
||||||
|
Maintainer: HatThieves <webmaster@hatthieves.es>
|
||||||
|
Depends: bash
|
||||||
|
Homepage: https://lch.hatthieves.es
|
||||||
|
Description: LCH - Linux Compressor Humanizer" > "lch-$VERSION/DEBIAN/control"
|
||||||
|
mkdir -p "lch-$VERSION/usr/bin" "lch-$VERSION/usr/lib/lch" "lch-$VERSION/usr/share/man/man1"
|
||||||
|
cp ./lch "lch-$VERSION/usr/bin"
|
||||||
|
cp -r ./lib/* "lch-$VERSION/usr/lib/lch"
|
||||||
|
gzip ./man/lch.1 -c > "lch-$VERSION/usr/share/man/man1/lch.1.gz"
|
||||||
|
chmod 644 "lch-$VERSION/usr/share/man/man1/lch.1.gz"
|
||||||
|
dpkg -b "lch-$VERSION"
|
||||||
|
rm -rf "lch-$VERSION"
|
||||||
Vendored
-5
@@ -1,5 +0,0 @@
|
|||||||
lch (0.6.10) unstable; urgency=medium
|
|
||||||
|
|
||||||
* Initial release.
|
|
||||||
|
|
||||||
-- Pedro Berrocal <pberr@hatthieves.es> Sun, 04 Oct 2020 00:51:43 +0200
|
|
||||||
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
10
|
|
||||||
Vendored
-10
@@ -1,10 +0,0 @@
|
|||||||
Source: lch
|
|
||||||
Maintainer: Pedro Berrocal <pberr@hatthieves.es>
|
|
||||||
Standards-Version: 0.6.10
|
|
||||||
Section: utils
|
|
||||||
Build-Depends: debhelper (>= 10.2.5)
|
|
||||||
|
|
||||||
Package: lch
|
|
||||||
Architecture: all
|
|
||||||
Description: Linux Compressor Humanizer
|
|
||||||
Download it and forget about writing arguments.
|
|
||||||
Vendored
-7
@@ -1,7 +0,0 @@
|
|||||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
||||||
Upstream-Name: falcot-data
|
|
||||||
|
|
||||||
Files: *
|
|
||||||
Copyright: 2004-2019 Hatthieves
|
|
||||||
License:
|
|
||||||
All rights reserved.
|
|
||||||
Vendored
-41
@@ -1,41 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
if [ "$UID" != "0" ]; then
|
|
||||||
echo " Only root can execute this script, sorry."
|
|
||||||
echo " Try 'sudo $0'"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Si existe el archivo lch
|
|
||||||
if [[ -f "/usr/bin/lch" ]]; then
|
|
||||||
rm /usr/bin/lch
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Si existe el directorio lch
|
|
||||||
if [[ -d "/usr/lib/lch" ]]; then
|
|
||||||
rm -rf "/usr/lib/lch"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Si existe man
|
|
||||||
if [ -x "$(command -v man)" ]; then
|
|
||||||
# Si nulo manpath
|
|
||||||
if [ -z "$MANPATH" ]; then
|
|
||||||
MANPATH=$(manpath)
|
|
||||||
fi
|
|
||||||
|
|
||||||
MANDIR=${MANPATH%%:*}/man1
|
|
||||||
|
|
||||||
# Si man lch.1
|
|
||||||
if [[ -f "$MANDIR/lch.1" ]]; then
|
|
||||||
rm "$MANDIR/lch.1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Si man lch.1.gz
|
|
||||||
if [[ -f "$MANDIR/lch.1.gz" ]]; then
|
|
||||||
rm "$MANDIR/lch.1.gz"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "=============================="
|
|
||||||
echo " lch uninstalled successfully."
|
|
||||||
echo -e "==============================\n"
|
|
||||||
Vendored
-15
@@ -1,15 +0,0 @@
|
|||||||
#!/usr/bin/make -f
|
|
||||||
|
|
||||||
%:
|
|
||||||
dh $@
|
|
||||||
|
|
||||||
override_dh_usrlocal:
|
|
||||||
|
|
||||||
override_dh_auto_install:
|
|
||||||
./bin/install.sh
|
|
||||||
|
|
||||||
configure:
|
|
||||||
|
|
||||||
clean:
|
|
||||||
dh_autoreconf_clean
|
|
||||||
dh_clean
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
VERSION=0.6r10
|
VERSION=$(cat VERSION)r$(cat RELEASE)
|
||||||
DEST=$1
|
DEST=$1
|
||||||
shift 1
|
shift 1
|
||||||
ORIG=$@
|
ORIG=$@
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
#
|
#
|
||||||
Summary: Linux Compress Humanizer
|
Summary: Linux Compress Humanizer
|
||||||
Name: lch
|
Name: lch
|
||||||
Version: 0.6
|
Version: %(cat "$PWD/VERSION")
|
||||||
Release: 10
|
Release: %(cat "$PWD/RELEASE")
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: https://lch.hatthieves.es
|
URL: https://lch.hatthieves.es
|
||||||
Group: System
|
Group: System
|
||||||
@@ -16,7 +16,7 @@ Requires: bash
|
|||||||
BuildRoot: ./rpmbuild/
|
BuildRoot: ./rpmbuild/
|
||||||
|
|
||||||
# Build with the following syntax:
|
# Build with the following syntax:
|
||||||
# rpmbuild --target noarch -bb utils.spec
|
# rpmbuild --target noarch -bb lch.spec
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Linux Compress Humanizer
|
Linux Compress Humanizer
|
||||||
|
|||||||
Reference in New Issue
Block a user