# HG changeset patch # User Christophe Lincoln # Date 1298552899 -3600 # Node ID b7493ef2822115b196deb5d26fe009379e8ee3b8 # Parent deb4940afbdd862fb173c7ce5ac7ed43261c432f Use /home/slitaz/VERSION as work directory diff -r deb4940afbdd -r b7493ef28221 doc/tazlito.en.html --- a/doc/tazlito.en.html Thu Feb 24 13:45:28 2011 +0100 +++ b/doc/tazlito.en.html Thu Feb 24 14:08:19 2011 +0100 @@ -202,9 +202,10 @@

extract-flavor

The 'extract-flavor' command converts a flavor into an easily modifiable -tree structure in /home/slitaz/flavors which can be managed with +tree structure in /home/slitaz/VERSION/flavors which can be managed with mercurial: http://hg.slitaz.org/flavors. +For example on cooking you will have the work directory in /home/slitaz/cooking.

  # tazlito extract-flavor this-flavor
@@ -213,7 +214,7 @@
 
 

pack-flavor

-The 'pack-flavor' command converts a tree structure in /home/slitaz/flavors +The 'pack-flavor' command converts a tree structure in /home/slitaz/VERSION/flavors into a flavor file (.flavor). It is inverse of 'tazlito extract-flavor':

diff -r deb4940afbdd -r b7493ef28221 doc/tazlito.fr.html
--- a/doc/tazlito.fr.html	Thu Feb 24 13:45:28 2011 +0100
+++ b/doc/tazlito.fr.html	Thu Feb 24 14:08:19 2011 +0100
@@ -213,8 +213,9 @@
 

extract-flavor

La commande 'extract-flavor' convertit une saveur en une arborescence -facilement modifiable dans /home/slitaz/flavors/'saveur' qui pourra être gérée -avec Mercurial dans http://hg.slitaz.org/flavors. +facilement modifiable dans /home/slitaz/VERSION/flavors qui pourra être gérée +avec Mercurial dans http://hg.slitaz.org/flavors. +Par exemple sur une cooking le répértoire de travail sera /home/slitaz/cooking/flavors.

  # tazlito extract-flavor une-saveur
@@ -223,7 +224,7 @@
 
 

pack-flavor

-La commande 'pack-flavor' convertit une arborescence de /home/slitaz/flavors/ +La commande 'pack-flavor' convertit une arborescence de /home/slitaz/VERSION/flavors en saveur (.flavor). Soit l'opération inverse de tazlito extract-flavor.

diff -r deb4940afbdd -r b7493ef28221 doc/tazlito.pt.html
--- a/doc/tazlito.pt.html	Thu Feb 24 13:45:28 2011 +0100
+++ b/doc/tazlito.pt.html	Thu Feb 24 14:08:19 2011 +0100
@@ -198,7 +198,7 @@
 

extract-flavor

O comando 'extract-flavor' converte um flavor em uma estrutura de pastas -facilmente modificável em /home/slitaz/flavors que pode ser ser +facilmente modificável em /home/slitaz/VERSION/flavors que pode ser ser gerenciada com o mercurial: http://hg.slitaz.org/flavors.

@@ -209,9 +209,9 @@

pack-flavor

-Este comando converte uma estrutura de pastas encontrada em /home/slitaz/flavors -em um arquivo de variante (.flavor). É o inverso do que o comando -'extract-flavor' faz: +Este comando converte uma estrutura de pastas encontrada em +/home/slitaz/VERSION/flavors em um arquivo de variante (.flavor). É o +inverso do que o comando 'extract-flavor' faz:

  # tazlito pack-flavor this-flavor
diff -r deb4940afbdd -r b7493ef28221 tazlito.conf
--- a/tazlito.conf	Thu Feb 24 13:45:28 2011 +0100
+++ b/tazlito.conf	Thu Feb 24 14:08:19 2011 +0100
@@ -2,8 +2,11 @@
 # configuration file.
 #
 
+# SliTaz version use for ISO name and files path.
+SLITAZ_VERSION=`cat /etc/slitaz-release`
+
 # Name of the ISO image to generate.
-ISO_NAME="slitaz"
+ISO_NAME="slitaz-$SLITAZ_VERSION"
 #ISO_NAME="slitaz-cooking-`date +%Y%m%d`"
 
 # ISO image volume name.
@@ -12,14 +15,17 @@
 # Name of the preparer.
 PREPARED="$USER"
 
+# Tazlito work directory with flavors, distro and packages files.
+WORK_DIR="/home/slitaz/$SLITAZ_VERSION"
+
 # Path to the packages repository and the packages.list.
-PACKAGES_REPOSITORY="/home/slitaz/packages"
+PACKAGES_REPOSITORY="$WORK_DIR/packages"
 
 # Path to the distro tree to gen-distro from a list of packages.
-DISTRO="/home/slitaz/distro"
+DISTRO="$WORK_DIR/distro"
 
 # Path to the LiveCD flavors files (http://hg.slitaz.org/flavors)
-FLAVORS_REPOSITORY=/home/slitaz/flavors
+FLAVORS_REPOSITORY=$WORK_DIR/flavors
 
 # Path to the directory containing additional files
 # to copy into the rootfs and rootcd of the LiveCD.