Commit e01c4fdf authored by madmurphy's avatar madmurphy
Browse files

Commit #14

parent 91d6f2b0
......@@ -2,28 +2,38 @@ Change Log
==========
## 1.0.1
## 1.0.2 (2021-05-24)
Changes:
* Use of `fprintf()` for logging has been dropped in favor of GLib's
`g_message()`
* A small bug in the build system that caused `make distcheck` not to function
properly has been fixed
## 1.0.1 (2021-05-06)
Changes:
* Error messages have been marked with a label (`"Nautilus Bluetooth"`)
## 1.0.0
## 1.0.0 (2021-05-03)
Changes:
* Package review and fix this as the first stable major release (1.0.0)
## 0.1.6
## 0.1.6 (2020-10-20)
Changes:
* Use `--disable-static` as the default `configure` option
## 0.1.5
## 0.1.5 (2020-10-08)
Changes:
......@@ -31,35 +41,35 @@ Changes:
* General package maintenance
## 0.1.4
## 0.1.4 (2019-09-16)
Changes:
* Updated building environment
## 0.1.3
## 0.1.3 (2019-09-05)
Changes:
* Code review
## 0.1.2
## 0.1.2 (2019-09-02)
Changes:
* Code review
## 0.1.1
## 0.1.1 (2019-09-01)
Changes:
* Added German translation
## 0.1.0
## 0.1.0 (2019-08-28)
**Nautilus Bluetooth** has been published.
......@@ -69,7 +69,9 @@ i18n-update:
&& mkdir -p 'backups' && grep -o '^\s*\w\S\+' 'LINGUAS' | while read \
coin; do mv "$${coin}.po" "$${coin}.po.bak" && msgmerge \
"$${coin}.po.bak" '$(PACKAGE_TARNAME).pot' > "$${coin}.po" && mv \
"$${coin}.po.bak" 'backups'; done; rm '$(PACKAGE_TARNAME).pot')
"$${coin}.po.bak" 'backups' && sed -i \
's/"Project-Id-Version:\s*\([0-9]\+\(\.[0-9]\+\(\.[0-9]\)\?\)\?\)\?\+\\n"/"Project-Id-Version: @PACKAGE_VERSION@\\n"/' \
"$${coin}.po"; done; rm '$(PACKAGE_TARNAME).pot')
# EOF
......
......@@ -21,11 +21,11 @@ First thing to do is to make sure that `gettext` and `intltool` are installed
on your system. Then clone this repository and launch the following four
commands:
```
``` sh
cd nautilus-bluetooth/po
intltool-update -p
intltool-update -p --gettext-package=nautilus-bluetooth
msginit -l nl
rm NautilusBluetooth.pot
rm nautilus-bluetooth.pot
```
Now edit the `po/LINGUAS` file and add a new line containing the abbreviated
......@@ -39,9 +39,9 @@ in the extension source code, launch
``` sh
cd nautilus-bluetooth/po
intltool-update -p
mv nl.po nl.po.bak && msgmerge nl.po.bak NautilusBluetooth.pot > nl.po
rm NautilusBluetooth.pot nl.po.bak
intltool-update -p --gettext-package=nautilus-bluetooth
mv nl.po nl.po.bak && msgmerge nl.po.bak nautilus-bluetooth.pot > nl.po
rm nautilus-bluetooth.pot nl.po.bak
```
For any issue, [drop me a message][1].
......@@ -57,9 +57,9 @@ generator.
Free software
-------------
This extension is free software. You can redistribute it and/or modify it under
the terms of the GPL license version 3 or any later version. See [COPYING][3]
for details.
**Nautilus Bluetooth** is free software. You can redistribute it and/or modify
it under the terms of the GPL license version 3 or any later version. See
[COPYING][3] for details.
[1]: https://gitlab.gnome.org/madmurphy/nautilus-bluetooth/issues
......
# German translations for nautilus-bluetooth package.
# Copyright (C) 2019 <madmurphy333@gmail.com>
# This file is distributed under the same license as the nautilus-bluetooth
# package.
# Jannis Schmidt <jschmidt@posteo.de>, 2019.
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0.0\n"
"Report-Msgid-Bugs-To: <madmurphy333@gmail.com>\n"
"POT-Creation-Date: 2019-09-05 19:47+0100\n"
"PO-Revision-Date: 2019-09-01 00:19+0200\n"
"Last-Translator: Jannis Schmidt <jschmidt@posteo.de>\n"
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../src/nautilus-bluetooth.c:141
msgid "Send via Bluetooth"
msgstr "Via Bluetooth senden"
#: ../src/nautilus-bluetooth.c:142
msgid "Send the selected files to a Bluetooth device"
msgstr "Versende die ausgewählten Dateien an ein Bluetooth-Gerät"
# Spanish translations for nautilus-bluetooth package.
# Copyright (C) 2019 <madmurphy333@gmail.com>
# This file is distributed under the same license as the nautilus-bluetooth
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0.0\n"
"Report-Msgid-Bugs-To: <madmurphy333@gmail.com>\n"
"POT-Creation-Date: 2019-09-05 19:47+0100\n"
"PO-Revision-Date: 2019-08-28 13:59+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Spanish <es@tp.org.es>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../src/nautilus-bluetooth.c:141
msgid "Send via Bluetooth"
msgstr "Enviar por Bluetooth"
#: ../src/nautilus-bluetooth.c:142
msgid "Send the selected files to a Bluetooth device"
msgstr "Enviar los archivos seleccionados a un dispositivo Bluetooth"
# French translations for nautilus-bluetooth package.
# Copyright (C) 2019 <madmurphy333@gmail.com>
# This file is distributed under the same license as the nautilus-bluetooth
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0.0\n"
"Report-Msgid-Bugs-To: <madmurphy333@gmail.com>\n"
"POT-Creation-Date: 2019-09-05 19:47+0100\n"
"PO-Revision-Date: 2019-08-28 13:59+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: French <traduc@traduc.org>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: ../src/nautilus-bluetooth.c:141
msgid "Send via Bluetooth"
msgstr "Envoyer via Bluetooth"
#: ../src/nautilus-bluetooth.c:142
msgid "Send the selected files to a Bluetooth device"
msgstr "Envoyer les fichiers sélectionnés à un périphérique Bluetooth"
# Italian translations for nautilus-bluetooth package.
# Copyright (C) 2019 <madmurphy333@gmail.com>
# This file is distributed under the same license as the nautilus-bluetooth
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0.0\n"
"Report-Msgid-Bugs-To: <madmurphy333@gmail.com>\n"
"POT-Creation-Date: 2019-09-05 19:47+0100\n"
"PO-Revision-Date: 2019-08-26 17:05+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Italian <tp@lists.linux.it>\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../src/nautilus-bluetooth.c:141
msgid "Send via Bluetooth"
msgstr "Invia tramite Bluetooth"
#: ../src/nautilus-bluetooth.c:142
msgid "Send the selected files to a Bluetooth device"
msgstr "Invia i file selezionati a un dispositivo Bluetooth"
# Latin translations for nautilus-bluetooth package.
# Copyright (C) 2019 <madmurphy333@gmail.com>
# This file is distributed under the same license as the nautilus-bluetooth
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0.0\n"
"Report-Msgid-Bugs-To: <madmurphy333@gmail.com>\n"
"POT-Creation-Date: 2019-09-05 19:47+0100\n"
"PO-Revision-Date: 2021-05-02 23:19+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Latin\n"
"Language: la\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../src/nautilus-bluetooth.c:141
msgid "Send via Bluetooth"
msgstr "Mittere per Bluetooth"
#: ../src/nautilus-bluetooth.c:142
msgid "Send the selected files to a Bluetooth device"
msgstr "Mittere electos codicillos ad Bluetooth apparatum"
# Turkish translations for nautilus-bluetooth package.
# Copyright (C) 2019 <madmurphy333@gmail.com>
# This file is distributed under the same license as the nautilus-bluetooth
# package.
# Cihan Alkan, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0.0\n"
"Report-Msgid-Bugs-To: <madmurphy333@gmail.com>\n"
"POT-Creation-Date: 2020-07-11 15:03+0300\n"
"PO-Revision-Date: 2020-07-11 15:05+0300\n"
"Last-Translator: Cihan Alkan\n"
"Language-Team: Turkish <gnome-turk@gnome.org>\n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.3.1\n"
#: ../src/nautilus-bluetooth.c:141
msgid "Send via Bluetooth"
msgstr "Bluetooth ile gönder"
#: ../src/nautilus-bluetooth.c:142
msgid "Send the selected files to a Bluetooth device"
msgstr "Seçilen dosyaları bir Bluetooth cihazına gönder"
#!/bin/bash
# Run this to generate all the initial makefiles, etc.
DIE=0
CLEANONLY=0
NOCONFIGURE=0
UPDATEONLY=0
CONFIGURE_ARGS=()
for __AG_ARG__; do
case "${__AG_ARG__}" in
for __BS_ARG__; do
case "${__BS_ARG__}" in
-h|--help)
echo "Usage: ${0##*/} [OPTION]"
echo
......@@ -15,7 +17,7 @@ for __AG_ARG__; do
echo ' -h, --help Show this help message'
echo ' -z, --noconfigure Prepare the build system without launching the'
echo ' configure process'
echo ' --clean Removes all files generated by this script'
echo ' -c, --clean Remove all files generated by this script'
echo
echo 'If this script is invoked without the `--noconfigure` option all unrecognized'
echo 'arguments will be passed to `configure`.'
......@@ -24,45 +26,27 @@ for __AG_ARG__; do
-z|--noconfigure)
NOCONFIGURE=1
;;
--clean)
-c|--clean)
CLEANONLY=1
;;
*)
CONFIGURE_ARGS+=("${__AG_ARG__}")
CONFIGURE_ARGS+=("${__BS_ARG__}")
;;
esac
done
srcdir=`dirname ${0}`
test -z "${srcdir}" && srcdir=.
if test "${CLEANONLY}" -ne 0; then
echo 'Cleaning package...'
test -f 'Makefile' && make maintainer-clean
rm -Rf autom4te.cache m4 build-aux `find . -type d -name .deps`
rm -f aclocal.m4 compile config.* configure depcomp install-sh libtool ltmain.sh missing intltool-* `find . -name Makefile.in`
rm -Rf autom4te.cache m4 build-aux no-dist `find . -type d -name .deps`
rm -f aclocal.m4 compile config.* configure configure~ depcomp install-sh libtool ltmain.sh missing intltool-* `find . -name Makefile.in`
echo 'Done'
exit 0
fi
srcdir=`dirname ${0}`
test -z "${srcdir}" && srcdir=.
if [[ `test -z "${OSTYPE}" && uname -s || echo "${OSTYPE}"` =~ ^[Dd]arwin* ]]; then
if test -z "${LIBTOOL}"; then
echo 'macOS detected. Using glibtool.'
LIBTOOL='glibtool'
fi
if test -z "${LIBTOOLIZE}"; then
echo 'macOS detected. Using glibtoolize.'
LIBTOOLIZE='glibtoolize'
fi
else
if test -z "${LIBTOOL}"; then
LIBTOOL='libtool'
fi
if test -z "${LIBTOOLIZE}"; then
LIBTOOLIZE='libtoolize'
fi
fi
if test -n "${GNOME2_DIR}"; then
ACLOCAL_FLAGS="-I ${GNOME2_DIR}/share/aclocal ${ACLOCAL_FLAGS}"
LD_LIBRARY_PATH="${GNOME2_DIR}/lib:${LD_LIBRARY_PATH}"
......@@ -71,61 +55,78 @@ if test -n "${GNOME2_DIR}"; then
export LD_LIBRARY_PATH
fi
(test -f "${srcdir}/configure.ac") || {
test -f "${srcdir}/configure.ac" || {
echo
echo "**Error**: Directory \`${srcdir}\` does not look like the top-level package directory"
echo
exit 1
}
} >&2
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
autoconf --version < /dev/null > /dev/null 2>&1 || {
echo
echo '**Error**: You must have `autoconf` installed. Download the appropriate package'
echo 'for your distribution, or get the source tarball at ftp://ftp.gnu.org/pub/gnu/'
echo
DIE=1
}
} >&2
(grep "^IT_PROG_INTLTOOL" "${srcdir}/configure.ac" >/dev/null) && {
(intltoolize --version) < /dev/null > /dev/null 2>&1 || {
if grep "^IT_PROG_INTLTOOL" "${srcdir}/configure.ac" >/dev/null; then
intltoolize --version < /dev/null > /dev/null 2>&1 || {
echo
echo '**Error**: You must have `intltool` installed. You can get it from'
echo 'ftp://ftp.gnome.org/pub/GNOME/'
echo
DIE=1
}
}
} >&2
fi
(grep "^AM_PROG_XML_I18N_TOOLS" "${srcdir}/configure.ac" >/dev/null) && {
(xml-i18n-toolize --version) < /dev/null > /dev/null 2>&1 || {
if grep "^AM_PROG_XML_I18N_TOOLS" "${srcdir}/configure.ac" >/dev/null; then
xml-i18n-toolize --version < /dev/null > /dev/null 2>&1 || {
echo
echo '**Error**: You must have `xml-i18n-toolize` installed. You can get it from'
echo 'ftp://ftp.gnome.org/pub/GNOME/'
echo
DIE=1
}
}
} >&2
fi
(grep "^LT_INIT" "${srcdir}/configure.ac" >/dev/null) && {
if grep "^LT_INIT" "${srcdir}/configure.ac" >/dev/null; then
if [[ `test -z "${OSTYPE}" && uname -s || echo "${OSTYPE}"` =~ ^[Dd]arwin* ]]; then
if test -z "${LIBTOOL}"; then
echo 'macOS detected. Using glibtool.'
LIBTOOL='glibtool'
fi
if test -z "${LIBTOOLIZE}"; then
echo 'macOS detected. Using glibtoolize.'
LIBTOOLIZE='glibtoolize'
fi
else
if test -z "${LIBTOOL}"; then
LIBTOOL='libtool'
fi
if test -z "${LIBTOOLIZE}"; then
LIBTOOLIZE='libtoolize'
fi
fi
("${LIBTOOL}" --version) < /dev/null > /dev/null 2>&1 || {
echo
echo '**Error**: You must have `libtool` installed. You can get it from'
echo 'ftp://ftp.gnu.org/pub/gnu/'
echo
DIE=1
}
}
} >&2
fi
(grep "^AM_GLIB_GNU_GETTEXT" "${srcdir}/configure.ac" >/dev/null) && {
(grep "sed.*POTFILES" "${srcdir}/configure.ac") > /dev/null || \
(glib-gettextize --version) < /dev/null > /dev/null 2>&1 || {
if grep "^AM_GLIB_GNU_GETTEXT" "${srcdir}/configure.ac" >/dev/null; then
grep "sed.*POTFILES" "${srcdir}/configure.ac" > /dev/null || \
glib-gettextize --version < /dev/null > /dev/null 2>&1 || {
echo
echo '**Error**: You must have `glib` installed. You can get it from'
echo 'ftp://ftp.gtk.org/pub/gtk'
echo
DIE=1
}
}
} >&2
fi
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
......@@ -134,7 +135,7 @@ fi
echo
DIE=1
NO_AUTOMAKE=yes
}
} >&2
# if no automake, don't bother testing for aclocal
......@@ -144,7 +145,7 @@ test -n "${NO_AUTOMAKE}" || (aclocal --version) < /dev/null > /dev/null 2>&1 ||
echo 'recent enough. You can get automake from ftp://ftp.gnu.org/pub/gnu/'
echo
DIE=1
}
} >&2
if test "${DIE}" -ne 0; then
exit 1
......@@ -237,14 +238,14 @@ if test "${NOCONFIGURE}" -eq 0; then
echo ' ...'
if "${srcdir}/configure" "${CONFIGURE_ARGS[@]}"; then
echo "Now type \`make\` to compile, or type \`${0} --clean\` to delete all the"
echo 'files generated by this script'
echo 'files generated by this script.'
else
exit 1
fi
else
echo 'Skipping configure process. Type `configure --help` to list the configure'
echo 'Skipping the configure process. Type `configure --help` to list the configure'
echo "options, or type \`${0} --clean\` to delete all the files generated by"
echo 'this script'
echo 'this script.'
fi
# EOF
......
......@@ -9,7 +9,7 @@ dnl ***************************************************************************
AC_PREREQ([2.69])
AC_INIT([Nautilus Bluetooth],
[1.0.1],
[1.0.2],
[madmurphy333@gmail.com],
[nautilus-bluetooth],
[https://gitlab.gnome.org/madmurphy/nautilus-bluetooth])
......@@ -94,8 +94,10 @@ dnl F I N A L I Z A T I O N
dnl ***************************************************************************
AC_SUBST([NAUTILUS_EXTENSION_DIR],
["$($PKG_CONFIG --variable=extensiondir libnautilus-extension)"])
AC_SUBST([NAUTILUS_EXTENSION_DIR], m4_normalize(["$(
"${PKG_CONFIG}" --define-variable='libdir=${libdir}'
--variable=extensiondir libnautilus-extension
)"]))
LT_INIT([disable-static])
......
{
"name": "nautilus-bluetooth",
"version": "1.0.1",
"version": "1.0.2",
"description": "A simple Nautilus extension that adds a \"Send via Bluetooth\" entry to Nautilus' right-click menu",
"homepage": "https://gitlab.gnome.org/madmurphy/nautilus-bluetooth",
"author": "madmurphy333@gmail.com",
......
......@@ -6,9 +6,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0.1\n"
"Project-Id-Version: 1.0.2\n"
"Report-Msgid-Bugs-To: <madmurphy333@gmail.com>\n"
"POT-Creation-Date: 2019-09-05 19:47+0100\n"
"POT-Creation-Date: 2021-05-24 14:17+0100\n"
"PO-Revision-Date: 2019-09-01 00:19+0200\n"
"Last-Translator: Jannis Schmidt <jschmidt@posteo.de>\n"
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
......@@ -18,10 +18,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../src/nautilus-bluetooth.c:146
#: ../src/nautilus-bluetooth.c:160
msgid "Send via Bluetooth"
msgstr "Via Bluetooth senden"
#: ../src/nautilus-bluetooth.c:147
#: ../src/nautilus-bluetooth.c:161
msgid "Send the selected files to a Bluetooth device"
msgstr "Versende die ausgewählten Dateien an ein Bluetooth-Gerät"
......@@ -6,9 +6,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0.1\n"
"Project-Id-Version: 1.0.2\n"
"Report-Msgid-Bugs-To: <madmurphy333@gmail.com>\n"
"POT-Creation-Date: 2019-09-05 19:47+0100\n"
"POT-Creation-Date: 2021-05-24 14:17+0200\n"
"PO-Revision-Date: 2019-08-28 13:59+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Spanish <es@tp.org.es>\n"
......@@ -18,10 +18,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../src/nautilus-bluetooth.c:146
#: ../src/nautilus-bluetooth.c:160
msgid "Send via Bluetooth"
msgstr "Enviar por Bluetooth"
#: ../src/nautilus-bluetooth.c:147
#: ../src/nautilus-bluetooth.c:161
msgid "Send the selected files to a Bluetooth device"
msgstr "Enviar los archivos seleccionados a un dispositivo Bluetooth"
......@@ -6,9 +6,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0.1\n"
"Project-Id-Version: 1.0.2\n"
"Report-Msgid-Bugs-To: <madmurphy333@gmail.com>\n"
"POT-Creation-Date: 2019-09-05 19:47+0100\n"
"POT-Creation-Date: 2021-05-24 14:17+0200\n"
"PO-Revision-Date: 2019-08-28 13:59+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: French <traduc@traduc.org>\n"
......@@ -18,10 +18,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: ../src/nautilus-bluetooth.c:146
#: ../src/nautilus-bluetooth.c:160
msgid "Send via Bluetooth"
msgstr "Envoyer via Bluetooth"
#: ../src/nautilus-bluetooth.c:147
#: ../src/nautilus-bluetooth.c:161
msgid "Send the selected files to a Bluetooth device"
msgstr "Envoyer les fichiers sélectionnés à un périphérique Bluetooth"
......@@ -6,9 +6,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0.1\n"
"Project-Id-Version: 1.0.2\n"
"Report-Msgid-Bugs-To: <madmurphy333@gmail.com>\n"
"POT-Creation-Date: 2019-09-05 19:47+0100\n"
"POT-Creation-Date: 2021-05-24 14:17+0200\n"
"PO-Revision-Date: 2019-08-26 17:05+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Italian <tp@lists.linux.it>\n"
......@@ -18,10 +18,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../src/nautilus-bluetooth.c:146
#: ../src/nautilus-bluetooth.c:160
msgid "Send via Bluetooth"
msgstr "Invia tramite Bluetooth"
#: ../src/nautilus-bluetooth.c:147