Lahmizzar Muinela
2014-03-09 36255aafc1fc0c5576c2d6878319f034ac08a800
builder/create
@@ -1,17 +1,38 @@
#!/bin/bash
  ######################################
  # Author: devXive, Lahmizzar Muinela #
  # Email: support@devxive.com         #
  # Twitter: @devXive                  #
  # Website: http://www.devxive.com    #
  ######################################
# Copyright (C) 1997 - 2014 devXive - research and development
#
# The scriptfile is licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# The content of static vars and/or static echo output is licensed under the
# devXive Proprietary Use License (http://devxive.com/legal/license)
#
# Author:  devXive, Lahmizzar Muinela
# Email:   support@devxive.com
# Twitter: @devxive
# Website: http://devxive.com
#
#
# Description:
# Simple script to build an appropriate language manifest
#
# How to use
# ./create update 4.2.0b4 2013-12-06 (Fetch Updates from transifex first, then create the install file)
# ./create 4.2.0b4 2013-12-06 (Create the install file from the existing/current languages folder)
#
# This script is invoked by the build script, located in the root dir of this repo
sourcePath=$(realpath .)
setUpdate="$1"
setVersion="$2"
@@ -32,7 +53,7 @@
if [[ "$3" == "" ]]
    then
      setDate=$(date +"%Y-%m-%d")
    echo 'Using $setDate as build date'
    echo "Using $setDate as build date"
   fi
version=$setVersion
@@ -40,10 +61,8 @@
if [[ "$1" == "update" ]]
    then
    ./pull $version
    $sourcePath/builder/pull $version
  fi
sourcePath=$(realpath .)
tempDir="$sourcePath/pkg_projectfork_languages"
fileName="pkg_projectfork_languages.xml"
@@ -67,7 +86,7 @@
echo '   <author>Projectfork Translation Team</author>' >> "$file"
echo '   <authorEmail>support@projectfork.net</authorEmail>' >> "$file"
echo '   <authorUrl>http://www.projectfork.net</authorUrl>' >> "$file"
echo '   <copyright>(C) 2012 - 2013 by the Projectfork Translation Team. All rights reserved.</copyright>' >> "$file"
echo '   <copyright>(C) 2012 - 2014 by the Projectfork Translation Team. All rights reserved.</copyright>' >> "$file"
echo "   <version>$version</version>" >> "$file"
echo '   <updateable>fullupdate</updateable>' >> "$file"
echo '   <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>' >> "$file"