15 Commits

Author SHA1 Message Date
root 999e03fa3b test sonar 2020-10-06 15:59:06 +02:00
root 5f3cec2d88 test sonar 2020-10-06 15:55:07 +02:00
root b702974644 test sonar 2020-10-06 15:51:52 +02:00
root b914cd2d57 test sonar 2020-10-06 15:06:55 +02:00
root 1114291ee4 test sonar 2020-10-06 15:05:26 +02:00
root 5816d89708 test sonar 2020-10-06 15:03:56 +02:00
root a1fe5a05e7 test sonar 2020-10-06 15:01:38 +02:00
root 85bc852017 test sonar 2020-10-06 15:00:05 +02:00
root a67bbcc340 version and release automatized 2020-10-05 21:02:00 +02:00
ale 4e4a664d38 drone sources 2020-10-05 16:27:39 +02:00
ale c1d8ca58b9 drone sources 2020-10-05 16:16:02 +02:00
ale 0d3e7b3cc5 drone sources 2020-10-05 16:05:38 +02:00
pberr 54d6c5ed80 Add sonar code analisys drone step 2020-10-05 15:14:18 +02:00
ale 79f1b72bb4 Merge branch '0.6-dev' of https://gitea.hatthieves.es/cloud/lch into 0.6-dev 2020-10-04 19:55:49 +02:00
pberr 05c7cc0fcf Merge tag '0.6r10' into 0.6-dev 2020-10-04 19:15:02 +02:00
12 changed files with 40 additions and 89 deletions
+16 -5
View File
@@ -3,18 +3,29 @@ type: docker
name: default
steps:
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host: https://sonar.hatthieves.es
sonar_token:
from_secret: sonar_token
sources: .
commands:
- echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories
- echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
- apk update
- apk add libffi shellcheck
- /bin/sh -c /bin/drone-sonar
- name: Build Ubuntu deb package
image: ubuntu
volumes:
- name: deb_packages
path: /debian
commands:
- export DEBIAN_FRONTEND=noninteractive
- apt-get update && apt-get install -y dpkg-dev debhelper
- dpkg-buildpackage -us -uc
- cp ../*.deb .
- ./build-deb.sh
- dpkg -i *.deb
- rm -rf /debian/* && cp *.deb /debian
- cp *.deb /debian && rm *.deb
- lch -v
- name: Build CentOS rpm package
+1
View File
@@ -0,0 +1 @@
10
+1
View File
@@ -0,0 +1 @@
0.6
Executable
+17
View File
@@ -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"
-5
View File
@@ -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
-1
View File
@@ -1 +0,0 @@
10
-10
View File
@@ -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.
-7
View File
@@ -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.
-41
View File
@@ -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"
-15
View File
@@ -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 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
VERSION=0.6r10
VERSION=$(cat VERSION)r$(cat RELEASE)
DEST=$1
shift 1
ORIG=$@
+3 -3
View File
@@ -6,8 +6,8 @@
#
Summary: Linux Compress Humanizer
Name: lch
Version: 0.6
Release: 10
Version: %(cat "$PWD/VERSION")
Release: %(cat "$PWD/RELEASE")
License: GPL
URL: https://lch.hatthieves.es
Group: System
@@ -16,7 +16,7 @@ Requires: bash
BuildRoot: ./rpmbuild/
# Build with the following syntax:
# rpmbuild --target noarch -bb utils.spec
# rpmbuild --target noarch -bb lch.spec
%description
Linux Compress Humanizer