Changeset View
Changeset View
Standalone View
Standalone View
trunk/l10n-kf5/scripts/createdoctemplates.sh
Context not available. | |||||
5 | LC_MESSAGES=C | 5 | LC_MESSAGES=C | ||
---|---|---|---|---|---|
6 | CDPATH= | 6 | CDPATH= | ||
7 | 7 | | |||
8 | OLD_PWD=$PWD | ||||
9 | cd $(dirname $0) | ||||
10 | SCRIPTY_DIR=$PWD | ||||
11 | cd $OLD_PWD | ||||
12 | | ||||
8 | hput () { | 13 | hput () { | ||
9 | key=`echo $1 | sed -e "s#/#_#g" | sed -e "s#\.#_#g"` | 14 | key=`echo $1 | sed -e "s#/#_#g" | sed -e "s#\.#_#g"` | ||
10 | eval hash"$key"='$2' | 15 | eval hash"$key"='$2' | ||
Context not available. | |||||
23 | 28 | | |||
24 | check=no | 29 | check=no | ||
25 | if test "$1" = "--check"; then | 30 | if test "$1" = "--check"; then | ||
26 | . scripts/find_meinproc | 31 | . $SCRIPTY_DIR/find_meinproc | ||
27 | MEINPROC_COMMAND=`find_meinproc` | 32 | MEINPROC_COMMAND=`find_meinproc` | ||
28 | DOCBOOK_L10N_ALL="$BASEDIR/`get_path frameworks_kdoctools`/src/customization/xsl/all-l10n.xml" | 33 | DOCBOOK_L10N_ALL="$BASEDIR/`get_path frameworks_kdoctools`/src/customization/xsl/all-l10n.xml" | ||
29 | DOCBOOK_L10N_CUSTOM="$BASEDIR/`get_path frameworks_kdoctools`/src/customization/xsl/kde-custom-l10n.xml" | 34 | DOCBOOK_L10N_CUSTOM="$BASEDIR/`get_path frameworks_kdoctools`/src/customization/xsl/kde-custom-l10n.xml" | ||
Context not available. | |||||
43 | 48 | | |||
44 | if [ $# -eq 0 ]; then | 49 | if [ $# -eq 0 ]; then | ||
45 | rm -rf documentation | 50 | rm -rf documentation | ||
46 | bash ./scripts/populate_documentation.sh --silent | 51 | bash $SCRIPTY_DIR/populate_documentation.sh --silent | ||
47 | populateresult=$? | 52 | populateresult=$? | ||
48 | modules=`find documentation/ -maxdepth 1 -type d -follow -printf '%f\n' | grep -v svn | grep -v documentation` | 53 | modules=`find documentation/ -maxdepth 1 -type d -follow -printf '%f\n' | grep -v svn | grep -v documentation` | ||
49 | elif [ $# -eq 1 ]; then | 54 | elif [ $# -eq 1 ]; then | ||
50 | rm -rf documentation/$1 | 55 | rm -rf documentation/$1 | ||
51 | bash ./scripts/populate_documentation.sh --silent $1 | 56 | bash $SCRIPTY_DIR/populate_documentation.sh --silent $1 | ||
52 | populateresult=$? | 57 | populateresult=$? | ||
53 | modules=$1 | 58 | modules=$1 | ||
54 | else | 59 | else | ||
Context not available. | |||||
111 | test -n "$VERBOSE" && echo "Generating $j.pot has failed!" | 116 | test -n "$VERBOSE" && echo "Generating $j.pot has failed!" | ||
112 | continue | 117 | continue | ||
113 | fi | 118 | fi | ||
114 | splitstatus=`python ./scripts/msgsplit templates/docmessages/$m/$j.pot.new` | 119 | splitstatus=`python $SCRIPTY_DIR/msgsplit templates/docmessages/$m/$j.pot.new` | ||
115 | if [ -n "$splitstatus" ]; then | 120 | if [ -n "$splitstatus" ]; then | ||
116 | echo "Problem in msgsplit of templates/docmessages/$m/$j.pot.new" | 121 | echo "Problem in msgsplit of templates/docmessages/$m/$j.pot.new" | ||
117 | echo $splitstatus | 122 | echo $splitstatus | ||
Context not available. |