Commit fdcf5918 authored by madmurphy's avatar madmurphy
Browse files

Initial commit

parents
root = true
[package.json]
indent_style = tab
indent_size = 2
[{**.sh,configure.ac,**/Makefile.am}]
indent_style = tab
indent_size = 4
[src/nautilus-bluetooth.c]
charset = utf-8
indent_style = tab
indent_size = 4
madmurphy333 AT gmail DOT com
This diff is collapsed.
Change Log
==========
0.1.0
-----
**nautilus-bluetooth** has been published.
ChangeLog
\ No newline at end of file
INSTALL
=======
On most Unix-like systems, you should be able to install **nautilus-bluetooth**
using the following common steps:
./configure
make
make install
If you need to customize the target directories, or otherwise adjust the build
setting, use
./configure --help
to list the configure options.
If the `configure` script is missing from your package you need to create it by
running the `autogen.sh` script. Use the `--noconfigure` parameter in order to
prevent `autogen.sh` from running automatically `configure` immediately after
having generated it. To list different options use `autogen.sh --help`.
## Process this file with automake to produce Makefile.in
SUBDIRS = src po
dist_doc_DATA = \
AUTHORS \
COPYING \
ChangeLog \
NEWS \
README
INTLTOOL_FILES = intltool-extract.in \
intltool-merge.in \
intltool-update.in
EXTRA_DIST = \
ChangeLog.md \
INSTALL \
NEWS \
README.md \
autogen.sh \
package.json \
m4/ChangeLog \
$(INTLTOOL_FILES)
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update \
po/.intltool-merge-cache
# Remove doc directory on uninstall
uninstall-local:
-rm -r $(docdir)
ACLOCAL_AMFLAGS = -I m4
## EOF
NEWS
====
0.1.0
-----
**nautilus-bluetooth** has been published.
nautilus-bluetooth
==================
A simple Nautilus extension written in C that adds a “Send via Bluetooth” entry to Nautilus’ right-click menu.
Get involved
------------
The package needs help with internationalization. If a translation into your language is missing and you wish to get involved, here is what to do.
There are only two strings to translate:
1. “Send via Bluetooth”
2. “Send the selected files to a Bluetooth device”
Let's say you want to create a Dutch translation of **nautilus-bluetooth**. First thing to do is to make sure that `gettext` is installed in your system. Then clone this repository and launch the following two commands:
```
cd nautilus-bluetooth/po
msginit -l nl
```
Enter your email address and press enter. Now edit the `po/LINGUAS` file and add a new line containing the abbreviated name of the new language (`nl`).
Finally, open the file `po/nl.po`, translate the two strings above, et voila. All you have to do now is to commit your changes.
README
\ No newline at end of file
#!/bin/bash
# Run this to generate all the initial makefiles, etc.
DIE=0
CLEANONLY=0
NOCONFIGURE=0
CONFIGURE_ARGS=()
for __AG_ARG__; do
case "${__AG_ARG__}" in
-h|--help)
echo "Usage: ${0} [OPTION]"
echo
echo 'Options:'
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
echo 'If this script is invoked without the `--noconfigure` option all unrecognized'
echo 'arguments will be passed to `configure`.'
exit 0
;;
-z|--noconfigure)
NOCONFIGURE=1
;;
--clean)
CLEANONLY=1
;;
*)
CONFIGURE_ARGS+=("${__AG_ARG__}")
;;
esac
done
if test "${CLEANONLY}" -ne 0; then
echo 'Cleaning package...'
test -f 'Makefile' && make maintainer-clean
rm -Rf autom4te.cache m4 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`
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}"
PATH="${GNOME2_DIR}/bin:${PATH}"
export PATH
export LD_LIBRARY_PATH
fi
(test -f "${srcdir}/configure.ac") || {
echo
echo "**Error**: Directory \`${srcdir}\` does not look like the top-level package directory"
echo
exit 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
}
(grep "^IT_PROG_INTLTOOL" "${srcdir}/configure.ac" >/dev/null) && {
(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
}
}
(grep "^AM_PROG_XML_I18N_TOOLS" "${srcdir}/configure.ac" >/dev/null) && {
(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
}
}
(grep "^LT_INIT" "${srcdir}/configure.ac" >/dev/null) && {
("${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
}
}
(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 || {
echo
echo '**Error**: You must have `glib` installed. You can get it from'
echo 'ftp://ftp.gtk.org/pub/gtk'
echo
DIE=1
}
}
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
echo '**Error**: You must have `automake` installed. You can get it from'
echo 'ftp://ftp.gnu.org/pub/gnu/'
echo
DIE=1
NO_AUTOMAKE=yes
}
# if no automake, don't bother testing for aclocal
test -n "${NO_AUTOMAKE}" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
echo
echo '**Error**: Missing `aclocal`. The version of `automake` installed doesn'\''t appear'
echo 'recent enough. You can get automake from ftp://ftp.gnu.org/pub/gnu/'
echo
DIE=1
}
if test "${DIE}" -ne 0; then
exit 1
fi
echo
if test "${NOCONFIGURE}" -eq 0; then
echo 'I am going to prepare the build system and then run the `configure` script. If'
echo 'you wish differently, please specify the `--noconfigure` argument on the'
echo "\`${0}\` command line."
echo
if test -z "$*"; then
echo '**Warning**: I am going to run `configure` with no arguments. If you wish to'
echo "pass any, please specify them on the \`${0}\` command line."
echo
fi
else
echo 'I am going to prepare the build system without running the `configure` script.'
echo
if test ${#CONFIGURE_ARGS[@]} -gt 0; then
echo '**Warning**: The following arguments will be ignored:'
for __IDX__ in ${!CONFIGURE_ARGS[@]}; do
echo " $((__IDX__ + 1)). \`${CONFIGURE_ARGS[$__IDX__]}\`"
done
echo
fi
fi
echo 'Preparing the build system... please wait'
case "${CC}" in
xlc )
am_opt=--include-deps
;;
esac
for coin in `find "${srcdir}" -path "${srcdir}/CVS" -prune -o -name configure.ac -print`; do
dr=`dirname "${coin}"`
if test -f "${dr}/NO-AUTO-GEN"; then
echo "skipping ${dr} -- flagged as no auto-gen"
else
echo "Processing '${dr}' ..."
( cd "${dr}"
aclocalinclude="${ACLOCAL_FLAGS}"
if grep "^AM_GLIB_GNU_GETTEXT" configure.ac >/dev/null; then
echo "Creating ${dr}/aclocal.m4..."
test -r "${dr}/aclocal.m4" || touch "${dr}/aclocal.m4"
echo 'Running glib-gettextize... Ignore non-fatal messages.'
echo 'no' | glib-gettextize --force --copy
echo "Making ${dr}/aclocal.m4 writable..."
test -r "${dr}/aclocal.m4" && chmod u+w "${dr}/aclocal.m4"
fi
if grep "^IT_PROG_INTLTOOL" configure.ac >/dev/null; then
echo 'Running intltoolize...'
intltoolize --copy --force --automake
fi
if grep "^AM_PROG_XML_I18N_TOOLS" configure.ac >/dev/null; then
echo 'Running xml-i18n-toolize...'
xml-i18n-toolize --copy --force --automake
fi
if grep "^LT_INIT" configure.ac >/dev/null; then
if test -z "${NO_LIBTOOLIZE}" ; then
echo 'Running libtoolize...'
"${LIBTOOLIZE}" --force --copy
fi
fi
echo "Running aclocal ${aclocalinclude} ..."
aclocal ${aclocalinclude}
if grep "^A[CM]_CONFIG_HEADER" configure.ac >/dev/null; then
echo 'Running autoheader...'
autoheader
fi
echo "Running automake --gnu ${am_opt} ..."
automake --add-missing --copy --gnu ${am_opt}
echo 'Running autoconf...'
autoconf
)
fi
done
if test "${NOCONFIGURE}" -eq 0; then
echo -n "Running ${srcdir}/configure"
for __CF_ARG__ in "${CONFIGURE_ARGS[@]}"; do
echo -n " [${__CF_ARG__}]"
done
echo ' ...'
"${srcdir}/configure" "${CONFIGURE_ARGS[@]}" \
&& echo 'Now type `make` to compile.' || exit 1
else
echo 'Skipping configure process. Type `configure --help` to list the configure'
echo 'options.'
fi
# EOF
dnl Process this file with autoconf to produce a configure script.
dnl ***************************************************************************
dnl A U T O C O N F E N V I R O N M E N T
dnl ***************************************************************************
AC_INIT([nautilus-bluetooth], [0.1])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11])
AM_SILENT_RULES([yes])
AC_PREREQ([2.69])
AC_CONFIG_SRCDIR([src/nautilus-bluetooth.c])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_FILES([Makefile
src/Makefile
po/Makefile.in])
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_FUNC_FORK
AC_TYPE_PID_T
AC_TYPE_SIZE_T
PKG_CHECK_MODULES([NAUTILUS_BLUETOOTH], [glib-2.0 libnautilus-extension])
AC_CHECK_PROG([HAVE_PKGCONFIG], [pkg-config], [yes], [no])
AS_IF([test "x${HAVE_PKGCONFIG}" = xno], [AC_MSG_ERROR([you need to have pkgconfig installed!])])
dnl ***************************************************************************
dnl B L U E T O O T H S E T T I N G S
dnl ***************************************************************************
dnl Default program used by nautilus-bluetooth when the user does not specify a
dnl BLUETOOTH_SENDTO argument variable
AC_DEFUN([DEFAULT_BLUETOOTH_SENDTO_PROG], [bluetooth-sendto])
dnl Register the BLUETOOTH_SENDTO argument variable...
AC_ARG_VAR([BLUETOOTH_SENDTO], [Bluetooth file sharing command; it must support the syntax BLUETOOTH_SENDTO file1 file2 file3 ... etc. @<:@default=/usr/bin/]DEFAULT_BLUETOOTH_SENDTO_PROG[@:>@])
dnl First check whether a BLUETOOTH_SENDTO argument variable has been given; if
dnl not, check whether DEFAULT_BLUETOOTH_SENDTO_PROG is present in the system;
dnl if not, print an error message and stop configuring.
AS_IF([test "x${BLUETOOTH_SENDTO}" = x],
[AC_PATH_PROG([AUTO_BLUETOOTH_SENDTO_CMD], DEFAULT_BLUETOOTH_SENDTO_PROG)
AS_IF([test "x${AUTO_BLUETOOTH_SENDTO_CMD}" = x],
[AC_MSG_ERROR(DEFAULT_BLUETOOTH_SENDTO_PROG[ utility not found. Please specify a BLUETOOTH_SENDTO argument variable before launching this configure script. For more information see ./configure --help])],
[AC_DEFINE_UNQUOTED([NAUTILUS_BLUETOOTH_SENDTO_CMD], ["${AUTO_BLUETOOTH_SENDTO_CMD}"], [Command invoked to send files via Bluetooth])])],
[AC_DEFINE_UNQUOTED([NAUTILUS_BLUETOOTH_SENDTO_CMD], ["${BLUETOOTH_SENDTO}"], [Command invoked to send files via Bluetooth])])
dnl ***************************************************************************
dnl I N T E R N A T I O N A L I Z A T I O N
dnl ***************************************************************************
IT_PROG_INTLTOOL([0.35.0])
AC_CHECK_FUNCS([setlocale])
AC_SUBST([GETTEXT_PACKAGE], ['nautilus-bluetooth'])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [GETTEXT package name])
AM_GLIB_GNU_GETTEXT
AM_GLIB_DEFINE_LOCALEDIR([NAUTILUS_BLUETOOTH_LOCALEDIR])
dnl ***************************************************************************
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)])
LT_INIT
AC_OUTPUT
dnl EOF
{
"name": "nautilus-bluetooth",
"version": "0.1.0",
"description": "A simple Nautilus extension that adds a \"Send via Bluetooth\" entry to Nautilus' right-click menu",
"homepage": "https://madmurphy.github.io/nautilus-bluetooth/",
"author": "madmurphy333@gmail.com",
"license": "GPL-3.0",
"main": "nautilus-bluetooth",
"repository": {
"type": "git",
"url": "https://github.com/madmurphy/nautilus-bluetooth.git"
},
"dependencies": {
"glib2": "*",
"libnautilus-extension": "*",
"gnome-bluetooth": "*"
},
"devDependencies": {
"pkgconf": "*",
"intltool": "*"
},
"src": [
"src/nautilus-bluetooth.c"
],
"bugs": {
"url": "https://github.com/madmurphy/nautilus-bluetooth/issues",
"email" : "madmurphy333@gmail.com"
},
"keywords": [
"bluetooth",
"c",
"gnome",
"gnu",
"nautilus",
"nautilus-extension"
]
}
# please keep this list sorted alphabetically
#
es
fr
it
la
# List of source files containing translatable strings.
src/nautilus-bluetooth.c
# Spanish translations for nautilus-bluetooth package.
# Copyright (C) 2019 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the nautilus-bluetooth package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-28 15:49+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:160
msgid "Send via Bluetooth"
msgstr "Enviar por Bluetooth"
#: ../src/nautilus-bluetooth.c:161
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 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the nautilus-bluetooth package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-28 15:49+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:160
msgid "Send via Bluetooth"
msgstr "Envoyer via Bluetooth"
#: ../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"
# Italian translations for nautilus-bluetooth package.
# Copyright (C) 2019 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the nautilus-bluetooth package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-28 15:49+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:160
msgid "Send via Bluetooth"
msgstr "Invia tramite Bluetooth"
#: ../src/nautilus-bluetooth.c:161
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 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the nautilus-bluetooth package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-28 15:49+0100\n"
"PO-Revision-Date: 2019-08-28 02:30+0100\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:160
msgid "Send via Bluetooth"
msgstr "Mitte per Bluetooth"
#: ../src/nautilus-bluetooth.c:161
msgid "Send the selected files to a Bluetooth device"