From 28507b4d19d2c09694e2f52a40f0a7f4d3c4e6f3 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Tue, 31 Jan 2017 00:23:15 +0200 Subject: [PATCH] Remove old new-locale.sh script --- locale_build/new-locale.sh | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 locale_build/new-locale.sh diff --git a/locale_build/new-locale.sh b/locale_build/new-locale.sh deleted file mode 100755 index aa4698f..0000000 --- a/locale_build/new-locale.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -# Author: Sotiris Papadopoulos -# Last-Revision: 2017-01-30 -# Script to add support for a new language -# -# Usage: ./new-locale.sh -# Example: ./new-locale.sh gr_GR - -PACKAGE="youtube_dl_gui" - -PO_FILE="$PACKAGE.po" - - -if [ "$#" -ne 1 ]; then - echo "Usage: $0 " - echo "Example: $0 gr_GR" - exit 1 -fi - -cd .. - -TARGET="$PACKAGE/locale/$1" - - -if [ -d "$TARGET" ]; then - echo "[-]Locale '$1' already exists, exiting..." - exit 1 -fi - -echo "[*]Creating directory: '$TARGET'" -mkdir -p "$TARGET/LC_MESSAGES" - -echo "[*]Copying files..." -cp -v "$PACKAGE/locale/en_US/LC_MESSAGES/$PO_FILE" "$TARGET/LC_MESSAGES/$PO_FILE" - -echo "[*]Done"