Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub workflows, readme and version bump #129

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build termit

on: [push, pull_request]

jobs:
fedora_latest_build:
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1000
- name: Prepare build environment.
run: |
dnf -y upgrade
dnf -y install cmake gcc gtk+ vte291 vte291-devel lua lua-devel
- name: Configure
run: |
cmake -DCMAKE_BUILD_TYPE=Release .
- name: Build
run: |
make
- name: Install
run: |
make install
- name: Test version
run: |
termit --version

ubuntu_latest_build:
runs-on: ubuntu-latest
container:
image: ubuntu:latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare build environment.
run: |
apt-get update
apt-get -y install apt-utils
apt-get -y full-upgrade
apt-get install -y gcc cmake lua5.4-dev libgtk-3-dev libvte-2.91 gettext
- name: Configure
run: |
cmake -DCMAKE_BUILD_TYPE=Release .
- name: Build
run: |
make
- name: Install
run: |
make install
- name: Test version
run: |
termit --version
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

PROJECT(TERMIT C)

cmake_minimum_required(VERSION 2.6.1 FATAL_ERROR)
cmake_minimum_required(VERSION 2.6.1...3.22.2 FATAL_ERROR)
SET(CMAKE_VERSION "${CMAKE_CACHE_MAJOR_VERSION}.${CMAKE_CACHE_MINOR_VERSION}.${CMAKE_CACHE_RELEASE_VERSION}")

INCLUDE(UsePkgConfig)
Expand All @@ -38,7 +38,7 @@ SET(ENABLE_NLS TRUE CACHE BOOL "enable translation")
SET(XDG_DIR ${XDG_DIR} CACHE STRING "default xdg dir")

SET(TERMIT_PACKAGE "termit")
SET(TERMIT_PACKAGE_VERSION "3.1.0")
SET(TERMIT_PACKAGE_VERSION "3.1.1")
SET(TERMIT_LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale")
SET(TERMIT_XDG_DIR "${XDG_DIR}/termit")
SET(TERMIT_PACKAGE_NAME "termit - terminal emulator")
Expand Down
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# termit
Terminal emulator based on VTE library with Lua scripting

## Installation Instructions
[General guide](INSTALL)
### Prepare dependancies
#### fedora
```bash
# dnf -y install cmake gcc gtk+ vte291 vte291-devel lua lua-devel
```

#### ubuntu
```bash
# apt-get install -y gcc cmake lua5.4-dev libgtk-3-dev libvte-2.91 gettext
```

### build
Download, configure, build and install
```bash
$ git clone https://github.com/nonstop/termit.git
$ cd termit
$ cmake -DCMAKE_BUILD_TYPE=Release .
$ make
$ sudo make install
```

## [Changelog](ChangeLog)

## [Copyright](COPYING)
18 changes: 9 additions & 9 deletions po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2011-12-19 21:23+0100\n"
"Last-Translator: Dennis Ploeger <[email protected]>\n"
"PO-Revision-Date: 2022-09-08 22:22+0100\n"
"Last-Translator: SwissalpS <[email protected]>\n"
"Language-Team: de\n"
"Language: \n"
"MIME-Version: 1.0\n"
Expand All @@ -18,7 +18,7 @@ msgstr ""

#: src/termit_preferences.c:219
msgid "Apply to all tabs"
msgstr ""
msgstr "Auf alle Tabs anwenden"

#: src/termit_preferences.c:213
#, fuzzy
Expand All @@ -40,11 +40,11 @@ msgstr ""

#: src/termit.c:170 src/termit.c:223
msgid "Close tab"
msgstr ""
msgstr "Tab schliessen"

#: src/termit.c:187 src/termit.c:226
msgid "Copy"
msgstr ""
msgstr "Kopieren"

#: src/termit.c:190
msgid "Edit"
Expand All @@ -65,7 +65,7 @@ msgstr "Vordergrund"
#. File menu
#: src/termit.c:169 src/termit.c:222
msgid "New tab"
msgstr ""
msgstr "Neuen Tab"

#. Sessions menu
#: src/termit.c:202 src/callbacks.c:418
Expand All @@ -74,15 +74,15 @@ msgstr "Sitzung öffnen"

#: src/termit.c:188 src/termit.c:227
msgid "Paste"
msgstr ""
msgstr "Einfügen"

#: src/termit.c:186 src/termit.c:225 src/termit_preferences.c:167
msgid "Preferences"
msgstr ""
msgstr "Einstellungen"

#: src/termit.c:171 src/termit.c:228
msgid "Quit"
msgstr ""
msgstr "Beenden"

#: src/termit.c:203 src/callbacks.c:388
msgid "Save session"
Expand Down
20 changes: 10 additions & 10 deletions po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: Martintxo <[email protected]>\n"
"PO-Revision-Date: 2022-09-08 22:22+0100\n"
"Last-Translator: SwissalpS <[email protected]>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
Expand All @@ -17,7 +17,7 @@ msgstr ""

#: src/termit_preferences.c:219
msgid "Apply to all tabs"
msgstr ""
msgstr "Aplicar a todas las pestañas"

#: src/termit_preferences.c:213
#, fuzzy
Expand All @@ -38,11 +38,11 @@ msgstr "El comando no se entiende. Creando una nueva pestaña con shell"

#: src/termit.c:170 src/termit.c:223
msgid "Close tab"
msgstr ""
msgstr "Cerrar pestaña"

#: src/termit.c:187 src/termit.c:226
msgid "Copy"
msgstr ""
msgstr "Copiar"

#: src/termit.c:190
msgid "Edit"
Expand All @@ -63,7 +63,7 @@ msgstr "Frente"
#. File menu
#: src/termit.c:169 src/termit.c:222
msgid "New tab"
msgstr ""
msgstr "Nueva pestaña"

#. Sessions menu
#: src/termit.c:202 src/callbacks.c:418
Expand All @@ -72,15 +72,15 @@ msgstr "Abrir sesión"

#: src/termit.c:188 src/termit.c:227
msgid "Paste"
msgstr ""
msgstr "Pegar"

#: src/termit.c:186 src/termit.c:225 src/termit_preferences.c:167
msgid "Preferences"
msgstr ""
msgstr "Preferencias"

#: src/termit.c:171 src/termit.c:228
msgid "Quit"
msgstr ""
msgstr "Salir"

#: src/termit.c:203 src/callbacks.c:388
msgid "Save session"
Expand All @@ -105,7 +105,7 @@ msgid ""
"Close anyway?"
msgstr ""
"Hay varias pestañas abiertas.\n"
"¿Cerrarlas todas?"
"¿Cerrarlas todas igual?"

#: src/callbacks.c:297 src/callbacks.c:308
msgid "Tab name"
Expand Down
30 changes: 15 additions & 15 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Termit 1.1.1\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2008-01-22 11:12+0100\n"
"Last-Translator: Mallory Mollo <[email protected]>\n"
"PO-Revision-Date: 2022-09-08 22:22+0100\n"
"Last-Translator: SwissalpS <[email protected]>\n"
"Language-Team: Mallory Mollo <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
Expand All @@ -14,31 +14,31 @@ msgstr ""

#: src/termit_preferences.c:219
msgid "Apply to all tabs"
msgstr ""
msgstr "Appliquer à tous les onglets"

#: src/termit_preferences.c:213
msgid "Audible bell"
msgstr ""
msgstr "Cloche sonore"

#: src/termit_preferences.c:207
msgid "Background"
msgstr ""
msgstr "Fond"

#: src/termit_core_api.c:464
msgid "Cannot create a new tab"
msgstr "Impossible de créer un nouvel onglet"

#: src/termit_core_api.c:416
msgid "Cannot parse command. Creating tab with shell"
msgstr ""
msgstr "Impossible d'analyser la commande. Création d'onglet avec shell"

#: src/termit.c:170 src/termit.c:223
msgid "Close tab"
msgstr ""
msgstr "Fermer l'onglet"

#: src/termit.c:187 src/termit.c:226
msgid "Copy"
msgstr ""
msgstr "Copie"

#: src/termit.c:190
msgid "Edit"
Expand All @@ -50,16 +50,16 @@ msgstr "Fichier"

#: src/termit_preferences.c:193
msgid "Font"
msgstr ""
msgstr "Fonte"

#: src/termit_preferences.c:200
msgid "Foreground"
msgstr ""
msgstr "Premier plan"

#. File menu
#: src/termit.c:169 src/termit.c:222
msgid "New tab"
msgstr ""
msgstr "Nouvel onglet"

#. Sessions menu
#: src/termit.c:202 src/callbacks.c:418
Expand All @@ -68,23 +68,23 @@ msgstr "Ouvrir une session"

#: src/termit.c:188 src/termit.c:227
msgid "Paste"
msgstr ""
msgstr "Coller"

#: src/termit.c:186 src/termit.c:225 src/termit_preferences.c:167
msgid "Preferences"
msgstr ""
msgstr "Préférences"

#: src/termit.c:171 src/termit.c:228
msgid "Quit"
msgstr ""
msgstr "Quitter"

#: src/termit.c:203 src/callbacks.c:388
msgid "Save session"
msgstr "Enregistrer la session"

#: src/termit.c:229
msgid "Scrollbar"
msgstr ""
msgstr "Barre de défilement"

#: src/termit.c:205
msgid "Sessions"
Expand Down
2 changes: 1 addition & 1 deletion src/termit.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <getopt.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <vte/vte.h>
#include <vte-2.91/vte/vte.h>

#include "config.h"

Expand Down
2 changes: 1 addition & 1 deletion src/termit.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <config.h>

#include <gtk/gtk.h>
#include <vte/vte.h>
#include <vte-2.91/vte/vte.h>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not good "fix"
The path may be changed in future.
We should fellow the value from pkg-config
#131

#include <glib/gprintf.h>

#include <libintl.h>
Expand Down