localization files added
This commit is contained in:
@@ -885,6 +885,35 @@ executeMakePackageLocal ()
|
||||
cd $START_DIR
|
||||
}
|
||||
|
||||
executeMakePotFile ()
|
||||
{
|
||||
# make the pot file
|
||||
# this creates the pot file in the project root dir
|
||||
echo ""
|
||||
echo "************************************************************"
|
||||
echo "[$SCRIPT_NAME] Executing make pot"
|
||||
|
||||
cd $START_DIR
|
||||
|
||||
if [ -e $LOG_DIRECTORY/make-package-pot.log ]
|
||||
then
|
||||
rm $LOG_DIRECTORY/make-package-pot.log
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] make pot > $LOG_DIRECTORY/make-pot.log"
|
||||
make pot > $LOG_DIRECTORY/make-pot.log
|
||||
if [ $? -ne 0 ]; then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] ERROR: [make pot > $LOG_DIRECTORY/make-pot.log] failed"
|
||||
echo ""
|
||||
exit
|
||||
fi
|
||||
|
||||
cd $START_DIR
|
||||
}
|
||||
|
||||
|
||||
rpmBuild ()
|
||||
{
|
||||
# this function builds the rpm locally
|
||||
@@ -902,11 +931,11 @@ rpmBuild ()
|
||||
|
||||
# clean the po, pot and mo files
|
||||
cleanPOFile
|
||||
cleanPOTFile
|
||||
# cleanPOTFile
|
||||
cleanMOFiles
|
||||
|
||||
# create the *.mo files
|
||||
# createMOFiles
|
||||
createMOFiles
|
||||
|
||||
# create the log directory
|
||||
createLogDirectory
|
||||
@@ -924,8 +953,11 @@ rpmBuild ()
|
||||
# this creates the tarball in the package directory
|
||||
executeMakePackageLocal
|
||||
|
||||
# create the CASA.pot file
|
||||
executeMakePotFile
|
||||
|
||||
# create the CASA.po file
|
||||
#createPOFile
|
||||
createPOFile
|
||||
|
||||
# delete the yast2-CASA directory in the SOURCES directory
|
||||
deleteSourcesDirectoryContents
|
||||
@@ -1037,7 +1069,7 @@ rpmBuild ()
|
||||
deleteGeneratedFiles
|
||||
|
||||
# clean the pot and mo files
|
||||
cleanPOTFile
|
||||
# cleanPOTFile
|
||||
|
||||
# delete the yast2-CASA build directory
|
||||
deleteBuildDirectoryContents
|
||||
@@ -1077,6 +1109,9 @@ createTarBall ()
|
||||
# this creates the tarball in the package directory
|
||||
executeMakePackageLocal
|
||||
|
||||
# create the CASA.po file
|
||||
executeMakePotFile
|
||||
|
||||
# create the tar directory and the spec directory
|
||||
createTarDirectory
|
||||
createSpecDirectory
|
||||
@@ -1173,7 +1208,7 @@ createPOFile ()
|
||||
|
||||
createMOFiles ()
|
||||
{
|
||||
# use the CASA.po files from localization to create the CASA.mo files
|
||||
# use the CASA.pofiles files from localization to create the CASA.mo files
|
||||
cd $START_DIR
|
||||
PO_DIRS="$START_DIR/pofiles/cs
|
||||
$START_DIR/pofiles/de
|
||||
@@ -1257,7 +1292,7 @@ clean ()
|
||||
deleteGeneratedFiles
|
||||
|
||||
# clean the pot and mo files
|
||||
cleanPOTFile
|
||||
# cleanPOTFile
|
||||
cleanMOFiles
|
||||
|
||||
# delete the yast2-CASA build directory
|
||||
|
||||
Reference in New Issue
Block a user