diff --git a/ALL_README.md b/ALL_README.md index 3d6c579..8938aae 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -1,6 +1,8 @@ # All available README files by language - [Read the README in English](README.md) +- [Lee el README en español](README_es.md) +- [Irakurri README euskaraz](README_eu.md) - [Lire le README en français](README_fr.md) - [Le o README en galego](README_gl.md) -- [Leggi il “README” in italiano](README_it.md) +- [阅读中文(简体)的 README](README_zh_Hans.md) diff --git a/README.md b/README.md index 2e485bf..28d7e59 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ It shall NOT be edited by hand. [![Install Shaarli with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=shaarli) -*[Read this README is other languages.](./ALL_README.md)* +*[Read this README in other languages.](./ALL_README.md)* > *This package allows you to install Shaarli quickly and simply on a YunoHost server.* > *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.* diff --git a/README_es.md b/README_es.md new file mode 100644 index 0000000..54cb96f --- /dev/null +++ b/README_es.md @@ -0,0 +1,61 @@ + + +# Shaarli para Yunohost + +[![Nivel de integración](https://dash.yunohost.org/integration/shaarli.svg)](https://dash.yunohost.org/appci/app/shaarli) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/shaarli.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/shaarli.maintain.svg) + +[![Instalar Shaarli con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=shaarli) + +*[Leer este README en otros idiomas.](./ALL_README.md)* + +> *Este paquete le permite instalarShaarli rapidamente y simplement en un servidor YunoHost.* +> *Si no tiene YunoHost, visita [the guide](https://yunohost.org/install) para aprender como instalarla.* + +## Descripción general + +Shaarli is a minimalist bookmark manager and link sharing service that you can install on your own server. It is designed to be personal (single-user), fast and handy. + +### Features + +- share, comment and save interesting links +- bookmark useful/frequent links and share them between computers +- a minimal blog/microblog/writing platform +- a read-it-later/todo list +- a notepad to draft and save articles/posts/ideas +- a knowledge base to keep notes, documentation and code snippets +- a shared clipboard/notepad/pastebin between computers +- playlist manager for online media +- feed other blogs, aggregators, social networks... + + +**Versión actual:** 0.13.0~ynh1 + +**Demo:** + +## Capturas + +![Captura de Shaarli](./doc/screenshots/27wYsbC.png) + +## Documentaciones y recursos + +- Documentación administrador oficial: +- Repositorio del código fuente oficial de la aplicación : +- Catálogo YunoHost: +- Reportar un error: + +## Información para desarrolladores + +Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/shaarli_ynh/tree/testing + +Para probar la rama `testing`, sigue asÍ: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/shaarli_ynh/tree/testing --debug +o +sudo yunohost app upgrade shaarli -u https://github.com/YunoHost-Apps/shaarli_ynh/tree/testing --debug +``` + +**Mas informaciones sobre el empaquetado de aplicaciones:** diff --git a/README_eu.md b/README_eu.md new file mode 100644 index 0000000..d6672ff --- /dev/null +++ b/README_eu.md @@ -0,0 +1,61 @@ + + +# Shaarli YunoHost-erako + +[![Integrazio maila](https://dash.yunohost.org/integration/shaarli.svg)](https://dash.yunohost.org/appci/app/shaarli) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/shaarli.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/shaarli.maintain.svg) + +[![Instalatu Shaarli YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=shaarli) + +*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)* + +> *Pakete honek Shaarli YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.* +> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.* + +## Aurreikuspena + +Shaarli is a minimalist bookmark manager and link sharing service that you can install on your own server. It is designed to be personal (single-user), fast and handy. + +### Features + +- share, comment and save interesting links +- bookmark useful/frequent links and share them between computers +- a minimal blog/microblog/writing platform +- a read-it-later/todo list +- a notepad to draft and save articles/posts/ideas +- a knowledge base to keep notes, documentation and code snippets +- a shared clipboard/notepad/pastebin between computers +- playlist manager for online media +- feed other blogs, aggregators, social networks... + + +**Paketatutako bertsioa:** 0.13.0~ynh1 + +**Demoa:** + +## Pantaila-argazkiak + +![Shaarli(r)en pantaila-argazkia](./doc/screenshots/27wYsbC.png) + +## Dokumentazioa eta baliabideak + +- Administratzaileen dokumentazio ofiziala: +- Jatorrizko aplikazioaren kode-gordailua: +- YunoHost Denda: +- Eman errore baten berri: + +## Garatzaileentzako informazioa + +Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/shaarli_ynh/tree/testing). + +`testing` abarra probatzeko, ondorengoa egin: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/shaarli_ynh/tree/testing --debug +edo +sudo yunohost app upgrade shaarli -u https://github.com/YunoHost-Apps/shaarli_ynh/tree/testing --debug +``` + +**Informazio gehiago aplikazioaren paketatzeari buruz:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md new file mode 100644 index 0000000..120f56b --- /dev/null +++ b/README_zh_Hans.md @@ -0,0 +1,61 @@ + + +# YunoHost 上的 Shaarli + +[![集成程度](https://dash.yunohost.org/integration/shaarli.svg)](https://dash.yunohost.org/appci/app/shaarli) ![工作状态](https://ci-apps.yunohost.org/ci/badges/shaarli.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/shaarli.maintain.svg) + +[![使用 YunoHost 安装 Shaarli](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=shaarli) + +*[阅读此 README 的其它语言版本。](./ALL_README.md)* + +> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Shaarli。* +> *如果您还没有 YunoHost,请参阅[指南](https://yunohost.org/install)了解如何安装它。* + +## 概况 + +Shaarli is a minimalist bookmark manager and link sharing service that you can install on your own server. It is designed to be personal (single-user), fast and handy. + +### Features + +- share, comment and save interesting links +- bookmark useful/frequent links and share them between computers +- a minimal blog/microblog/writing platform +- a read-it-later/todo list +- a notepad to draft and save articles/posts/ideas +- a knowledge base to keep notes, documentation and code snippets +- a shared clipboard/notepad/pastebin between computers +- playlist manager for online media +- feed other blogs, aggregators, social networks... + + +**分发版本:** 0.13.0~ynh1 + +**演示:** + +## 截图 + +![Shaarli 的截图](./doc/screenshots/27wYsbC.png) + +## 文档与资源 + +- 官方管理文档: +- 上游应用代码库: +- YunoHost 商店: +- 报告 bug: + +## 开发者信息 + +请向 [`testing` 分支](https://github.com/YunoHost-Apps/shaarli_ynh/tree/testing) 发送拉取请求。 + +如要尝试 `testing` 分支,请这样操作: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/shaarli_ynh/tree/testing --debug +或 +sudo yunohost app upgrade shaarli -u https://github.com/YunoHost-Apps/shaarli_ynh/tree/testing --debug +``` + +**有关应用打包的更多信息:** diff --git a/scripts/_common.sh b/scripts/_common.sh index d18abc4..05a7907 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -1,54 +1,2 @@ #!/bin/bash -#================================================= -# COMMON VARIABLES -#================================================= - -#================================================= -# PERSONAL HELPERS -#================================================= - -#================================================= -# EXPERIMENTAL HELPERS -#================================================= - -# Check available space before creating a temp directory. -# -# usage: ynh_smart_mktemp --min_size="Min size" -# -# | arg: -s, --min_size= - Minimal size needed for the temporary directory, in Mb -ynh_smart_mktemp () { - # Declare an array to define the options of this helper. - declare -Ar args_array=( [s]=min_size= ) - local min_size - # Manage arguments with getopts - ynh_handle_getopts_args "$@" - - min_size="${min_size:-300}" - # Transform the minimum size from megabytes to kilobytes - min_size=$(( $min_size * 1024 )) - - # Check if there's enough free space in a directory - is_there_enough_space () { - local free_space=$(df --output=avail "$1" | sed 1d) - test $free_space -ge $min_size - } - - if is_there_enough_space /tmp; then - local tmpdir=/tmp - elif is_there_enough_space /var; then - local tmpdir=/var - elif is_there_enough_space /; then - local tmpdir=/ - elif is_there_enough_space /home; then - local tmpdir=/home - else - ynh_die "Insufficient free space to continue..." - fi - - echo "$(mktemp --directory --tmpdir="$tmpdir")" -} - -#================================================= -# FUTURE OFFICIAL HELPERS -#=================================================