Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
kde-susetranslations
fill_po.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fill_po.sh of Package kde-susetranslations
#!/bin/bash # vim: sw=4 et SUBDIRS=$1 LOCATION=$2 test -z "$SUBDIRS" && exit 1 test -z "$LOCATION" && LOCATION='${LOCALE_INSTALL_DIR}' rm -f CMakeLists.txt echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt LANGS=`cd $MY_LCN_CHECKOUT && ls -1d ?? ??_??` echo $LANGS for lang in $LANGS; do PO_LIST="" for i in $SUBDIRS; do echo -n "copying $lang/po/$i.$lang.po... " if test -f "$MY_LCN_CHECKOUT/$lang/po/$i.$lang.po"; then mkdir -p $lang cp -p $MY_LCN_CHECKOUT/$lang/po/$i.$lang.po $lang/$i.po PO_LIST="$PO_LIST $i.po" echo "done" else echo "missing" fi done echo "gettext_process_po_files($lang ALL INSTALL_DESTINATION $LOCATION $PO_LIST )" >> $lang/CMakeLists.txt echo "add_subdirectory($lang)" >> CMakeLists.txt done
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor