wok-6.x rev 10740

locale-*: we dont need compile rules any more since core pkgs are in slitaz-i18n bdeps
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 30 01:12:54 2011 +0200 (2011-05-30)
parents e63d22f12936
children 4a8d626e353b
files locale-cs/receipt locale-de/receipt locale-es/receipt locale-fr/receipt locale-hu/receipt locale-id/receipt locale-it/receipt locale-pt/receipt locale-ru/receipt locale-sl/receipt locale-zh_TW/receipt slitaz-i18n/stuff/locale-pack.functions
line diff
     1.1 --- a/locale-cs/receipt	Mon May 30 00:54:30 2011 +0200
     1.2 +++ b/locale-cs/receipt	Mon May 30 01:12:54 2011 +0200
     1.3 @@ -13,17 +13,6 @@
     1.4  LOCALEDEF="cs_CZ"
     1.5  CHARMAP="UTF-8"
     1.6  
     1.7 -# Rules to configure and make the package.
     1.8 -compile_rules()
     1.9 -{
    1.10 -	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    1.11 -	# Ensure packages are built.
    1.12 -	for pkg in $CORE_PKGS
    1.13 -	do
    1.14 -		[ -d $WOK/$pkg/taz ] || tazwok cook $pkg
    1.15 -	done
    1.16 -}
    1.17 -
    1.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.19  genpkg_rules()
    1.20  {
     2.1 --- a/locale-de/receipt	Mon May 30 00:54:30 2011 +0200
     2.2 +++ b/locale-de/receipt	Mon May 30 01:12:54 2011 +0200
     2.3 @@ -13,17 +13,6 @@
     2.4  LOCALEDEF="de_DE"
     2.5  CHARMAP="UTF-8"
     2.6  
     2.7 -# Rules to configure and make the package.
     2.8 -compile_rules()
     2.9 -{
    2.10 -	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    2.11 -	# Ensure packages are built.
    2.12 -	for pkg in $CORE_PKGS
    2.13 -	do
    2.14 -		[ -d $WOK/$pkg/taz ] || tazwok cook $pkg
    2.15 -	done
    2.16 -}
    2.17 -
    2.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.19  genpkg_rules()
    2.20  {
     3.1 --- a/locale-es/receipt	Mon May 30 00:54:30 2011 +0200
     3.2 +++ b/locale-es/receipt	Mon May 30 01:12:54 2011 +0200
     3.3 @@ -13,17 +13,6 @@
     3.4  LOCALEDEF="es_ES"
     3.5  CHARMAP="UTF-8"
     3.6  
     3.7 -# Rules to configure and make the package.
     3.8 -compile_rules()
     3.9 -{
    3.10 -	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    3.11 -	# Ensure packages are built.
    3.12 -	for pkg in $CORE_PKGS
    3.13 -	do
    3.14 -		[ -d $WOK/$pkg/taz ] || tazwok cook $pkg
    3.15 -	done
    3.16 -}
    3.17 -
    3.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.19  genpkg_rules()
    3.20  {
     4.1 --- a/locale-fr/receipt	Mon May 30 00:54:30 2011 +0200
     4.2 +++ b/locale-fr/receipt	Mon May 30 01:12:54 2011 +0200
     4.3 @@ -13,17 +13,6 @@
     4.4  LOCALEDEF="fr_FR"
     4.5  CHARMAP="UTF-8"
     4.6  
     4.7 -# Rules to configure and make the package.
     4.8 -compile_rules()
     4.9 -{
    4.10 -	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    4.11 -	# Ensure packages are built.
    4.12 -	for pkg in $CORE_PKGS
    4.13 -	do
    4.14 -		[ -d $WOK/$pkg/taz ] || tazwok cook $pkg
    4.15 -	done
    4.16 -}
    4.17 -
    4.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.19  genpkg_rules()
    4.20  {
     5.1 --- a/locale-hu/receipt	Mon May 30 00:54:30 2011 +0200
     5.2 +++ b/locale-hu/receipt	Mon May 30 01:12:54 2011 +0200
     5.3 @@ -13,17 +13,6 @@
     5.4  LOCALEDEF="hu_HU"
     5.5  CHARMAP="UTF-8"
     5.6  
     5.7 -# Rules to configure and make the package.
     5.8 -compile_rules()
     5.9 -{
    5.10 -	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    5.11 -	# Ensure packages are built.
    5.12 -	for pkg in $CORE_PKGS
    5.13 -	do
    5.14 -		[ -d $WOK/$pkg/taz ] || tazwok cook $pkg
    5.15 -	done
    5.16 -}
    5.17 -
    5.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.19  genpkg_rules()
    5.20  {
     6.1 --- a/locale-id/receipt	Mon May 30 00:54:30 2011 +0200
     6.2 +++ b/locale-id/receipt	Mon May 30 01:12:54 2011 +0200
     6.3 @@ -13,17 +13,6 @@
     6.4  LOCALEDEF="id_ID"
     6.5  CHARMAP="UTF-8"
     6.6  
     6.7 -# Rules to configure and make the package.
     6.8 -compile_rules()
     6.9 -{
    6.10 -	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    6.11 -	# Ensure packages are built.
    6.12 -	for pkg in $CORE_PKGS
    6.13 -	do
    6.14 -		[ -d $WOK/$pkg/taz ] || tazwok cook $pkg
    6.15 -	done
    6.16 -}
    6.17 -
    6.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    6.19  genpkg_rules()
    6.20  {	
     7.1 --- a/locale-it/receipt	Mon May 30 00:54:30 2011 +0200
     7.2 +++ b/locale-it/receipt	Mon May 30 01:12:54 2011 +0200
     7.3 @@ -13,17 +13,6 @@
     7.4  LOCALEDEF="it_IT"
     7.5  CHARMAP="UTF-8"
     7.6  
     7.7 -# Rules to configure and make the package.
     7.8 -compile_rules()
     7.9 -{
    7.10 -	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    7.11 -	# Ensure packages are built.
    7.12 -	for pkg in $CORE_PKGS
    7.13 -	do
    7.14 -		[ -d $WOK/$pkg/taz ] || tazwok cook $pkg
    7.15 -	done
    7.16 -}
    7.17 -
    7.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    7.19  genpkg_rules()
    7.20  {
     8.1 --- a/locale-pt/receipt	Mon May 30 00:54:30 2011 +0200
     8.2 +++ b/locale-pt/receipt	Mon May 30 01:12:54 2011 +0200
     8.3 @@ -13,17 +13,6 @@
     8.4  LOCALEDEF="pt_BR"
     8.5  CHARMAP="UTF-8"
     8.6  
     8.7 -# Rules to configure and make the package.
     8.8 -compile_rules()
     8.9 -{
    8.10 -	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    8.11 -	# Ensure packages are built.
    8.12 -	for pkg in $CORE_PKGS
    8.13 -	do
    8.14 -		[ -d $WOK/$pkg/taz ] || tazwok cook $pkg
    8.15 -	done
    8.16 -}
    8.17 -
    8.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    8.19  genpkg_rules()
    8.20  {
     9.1 --- a/locale-ru/receipt	Mon May 30 00:54:30 2011 +0200
     9.2 +++ b/locale-ru/receipt	Mon May 30 01:12:54 2011 +0200
     9.3 @@ -13,17 +13,6 @@
     9.4  LOCALEDEF="ru_RU"
     9.5  CHARMAP="UTF-8"
     9.6  
     9.7 -# Rules to configure and make the package.
     9.8 -compile_rules()
     9.9 -{
    9.10 -	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    9.11 -	# Ensure packages are built.
    9.12 -	for pkg in $CORE_PKGS
    9.13 -	do
    9.14 -		[ -d $WOK/$pkg/taz ] || tazwok cook $pkg
    9.15 -	done
    9.16 -}
    9.17 -
    9.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    9.19  genpkg_rules()
    9.20  {
    10.1 --- a/locale-sl/receipt	Mon May 30 00:54:30 2011 +0200
    10.2 +++ b/locale-sl/receipt	Mon May 30 01:12:54 2011 +0200
    10.3 @@ -13,17 +13,6 @@
    10.4  LOCALEDEF="sl_SI"
    10.5  CHARMAP="UTF-8"
    10.6  
    10.7 -# Rules to configure and make the package.
    10.8 -compile_rules()
    10.9 -{
   10.10 -	. $WOK/slitaz-i18n/stuff/locale-pack.conf
   10.11 -	# Ensure packages are built.
   10.12 -	for pkg in $CORE_PKGS
   10.13 -	do
   10.14 -		[ -d $WOK/$pkg/taz ] || tazwok cook $pkg
   10.15 -	done
   10.16 -}
   10.17 -
   10.18  # Rules to gen a SliTaz package suitable for Tazpkg.
   10.19  genpkg_rules()
   10.20  {
    11.1 --- a/locale-zh_TW/receipt	Mon May 30 00:54:30 2011 +0200
    11.2 +++ b/locale-zh_TW/receipt	Mon May 30 01:12:54 2011 +0200
    11.3 @@ -13,17 +13,6 @@
    11.4  LOCALEDEF="zh_TW"
    11.5  CHARMAP="UTF-8"
    11.6  
    11.7 -# Rules to configure and make the package.
    11.8 -compile_rules()
    11.9 -{
   11.10 -	. $WOK/slitaz-i18n/stuff/locale-pack.conf
   11.11 -	# Ensure packages are built.
   11.12 -	for pkg in $CORE_PKGS
   11.13 -	do
   11.14 -		[ -d $WOK/$pkg/taz ] || tazwok cook $pkg
   11.15 -	done
   11.16 -}
   11.17 -
   11.18  # Rules to gen a SliTaz package suitable for Tazpkg.
   11.19  # Genereted locale files are in /usr/lib/locale.
   11.20  genpkg_rules()
    12.1 --- a/slitaz-i18n/stuff/locale-pack.functions	Mon May 30 00:54:30 2011 +0200
    12.2 +++ b/slitaz-i18n/stuff/locale-pack.functions	Mon May 30 01:12:54 2011 +0200
    12.3 @@ -33,12 +33,11 @@
    12.4  # Get the core packages messages.
    12.5  get_core_messages()
    12.6  {
    12.7 -	
    12.8 -	for pkg in $CORE_PKGS
    12.9 +	for i in $CORE_PKGS
   12.10  	do
   12.11 -		[ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt
   12.12 -		if [ -d $WOK/$pkg/install/usr/share/locale/$LOCALE ]; then
   12.13 -			cp -a $WOK/$pkg/install/usr/share/locale/$LOCALE \
   12.14 +		[ -f $WOK/$i/receipt ] && . $WOK/$i/receipt
   12.15 +		if [ -d $WOK/$i/install/usr/share/locale/$LOCALE ]; then
   12.16 +			cp -a $WOK/$i/install/usr/share/locale/$LOCALE \
   12.17  				$fs/usr/share/locale
   12.18  		fi
   12.19  	done