Overhaul build, install and buildtest

This commit is contained in:
Raymond Li 2020-05-10 15:33:28 -04:00
parent 7493c0bead
commit 047179472b
No known key found for this signature in database
GPG Key ID: A014EA89B62BBB1B
11 changed files with 19 additions and 15 deletions

View File

@ -15,12 +15,10 @@ jobs:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt install pkg-config libpam0g-dev libcairo2-dev libfontconfig1-dev libxcb-composite0-dev libev-dev libx11-xcb-dev libxcb-xkb-dev libxcb-xinerama0-dev libxcb-randr0-dev libxcb-image0-dev libxcb-util-dev libxcb-xrm-dev libxkbcommon-dev libxkbcommon-x11-dev libjpeg-dev
- name: autoreconf
run: autoreconf -fiv
- name: configure
run: ./configure --prefix=/usr --sysconfdir=/etc
- name: make
run: make
- name: Make build script executable
run: chmod +x build.sh
- name: Run build script
run: ./build.sh
- name: make check
run: make check
- name: make distcheck

View File

@ -1,6 +1,6 @@
Copyright © 2010-2011, Michael Stapelberg
Copyright © 2015, Cassandra Fox
Copyright © 2015, Raymond Li
Copyright © 2020, Raymond Li
All rights reserved.
Redistribution and use in source and binary forms, with or without

View File

@ -4,6 +4,6 @@ autoreconf -fiv
rm -rf build/
mkdir -p build && cd build/
../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers
../configure --prefix=/usr --sysconfdir=/etc
make

View File

@ -107,7 +107,7 @@ gets you the current screen dimensions in the wxh (e.g. 1920x1080) format.
.BI \-c\ rrggbbaa \fR,\ \fB\-\-color= rrggbbaa
Turn the screen into the given color instead of white. Color must be given in 4-byte
format: rrggbbaa (i.e. ff0000ff is opaque red).
Use the last byte for alpha. Setting this below FF (i.e. ff000088) will allow your screen to be shown translucently if you use a compositor (e.g. compton, xcompmgr).
Use the last byte for alpha. Setting this below FF (i.e. ff000088) will allow your screen to be shown translucently if you use a compositor (e.g. compton, xcompmgr).
.TP
.B \-t, \-\-tiling
@ -459,4 +459,4 @@ Jan-Erik Rediger <badboy at archlinux.us>
Pandora <pandora at techfo dot xyz>
Raymond Li <hi at raymond.li>
Raymond Li <i3lock-color at raymond.li>

View File

@ -3,6 +3,7 @@
*
* © 2010 Michael Stapelberg
* © 2015 Cassandra Fox
* © 2020 Raymond Li
*
* See LICENSE for licensing information
*
@ -1515,7 +1516,7 @@ int main(int argc, char *argv[]) {
while ((o = getopt_long(argc, argv, optstring, longopts, &longoptind)) != -1) {
switch (o) {
case 'v':
errx(EXIT_SUCCESS, "version " I3LOCK_VERSION " © 2010 Michael Stapelberg, © 2015 Cassandra Fox");
errx(EXIT_SUCCESS, "version " I3LOCK_VERSION " © 2010 Michael Stapelberg, © 2015 Cassandra Fox, © 2020 Raymond Li");
case 'n':
dont_fork = true;
break;

View File

@ -4,8 +4,8 @@ autoreconf -fiv
rm -rf build/
mkdir -p build && cd build/
../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers
../configure --prefix=/usr --sysconfdir=/etc
sudo make install
sudo install -Dm644 LICENSE "/usr/share/licenses/i3lock-color/LICENSE"
sudo install -Dm644 ../LICENSE "/usr/share/licenses/i3lock-color/LICENSE"

View File

@ -63,6 +63,7 @@
# LICENSE
#
# Copyright (c) 2016 Michael Stapelberg <michael@i3wm.org>
# Copyright (c) 2020 Raymond Li <i3lock-color@raymond.li>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice

View File

@ -69,6 +69,7 @@
# LICENSE
#
# Copyright (c) 2016 Michael Stapelberg <michael@i3wm.org>
# Copyright (c) 2020 Raymond Li <i3lock-color@raymond.li>
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright

View File

@ -2,6 +2,7 @@
* vim:ts=4:sw=4:expandtab
*
* © 2010 Michael Stapelberg
* © 2020 Raymond Li
*
* See LICENSE for licensing information
*

View File

@ -2,7 +2,8 @@
* vim:ts=4:sw=4:expandtab
*
* © 2010 Michael Stapelberg
* © 2010 Cassandra Fox
* © 2015 Cassandra Fox
* © 2020 Raymond Li
*
* See LICENSE for licensing information
*

3
xcb.c
View File

@ -1,7 +1,8 @@
/*
* vim:ts=4:sw=4:expandtab
*
* © 2010 Michael Stapelberg
* © 2010 Michael
* @ © 2020 Raymond Li
*
* xcb.c: contains all functions which use XCB to talk to X11. Mostly wrappers
* around the rather complicated/ugly parts of the XCB API.