"Fossies" - the Fresh Open Source Software Archive

Member "serendipity/lang/addlang.sh" (20 Nov 2022, 586 Bytes) of package /linux/www/serendipity-2.4.0.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "addlang.sh": 2.3.5_vs_2.4.0.

    1 #!/bin/bash
    2 
    3 if [ "x$1" = "x" ] 
    4  then
    5    echo "USAGE: addlang.sh INPUT-FILE"
    6    echo "----------------------------"
    7    echo "This script will append the contents of INPUT-FILE to every "
    8    echo "available language file."
    9    exit 1
   10  else
   11    if [ ! -f $1 ]; then
   12     echo "$1 does not exist."
   13     exit 10;
   14    fi
   15    find . -maxdepth 1 -name \*.inc.php -exec ./append.sh $1 {} \;
   16    TIMESTAMP=$(date +"%Y%m%d%H%M")
   17    mv $1 $1.$TIMESTAMP
   18    cd UTF-8
   19    ./recode.sh
   20    echo "-------------------------------------------------"
   21    echo "Please check the result and remove $1.$TIMESTAMP."
   22 fi