# HG changeset patch # User Christophe Lincoln # Date 1196507411 -3600 # Node ID 3abe847f22649dbe50119d26ff5403b2a45e9748 # Parent 8dedc9bde8e267fdefcfa5e2829cbffe53a17adc Add a Makefile and modified tazlito config path diff -r 8dedc9bde8e2 -r 3abe847f2264 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Sat Dec 01 12:10:11 2007 +0100 @@ -0,0 +1,29 @@ +# Makefile for Tazlito. +# Check the README for more informations. +# +SBINDIR?=/sbin +PREFIX?=/usr +DOCDIR?=/usr/share/doc + +all: + +# Installation. +# Config file goes in /etc/tazlito + +install: + @echo "Installing Tazlito into $(PREFIX)/bin..." + install -g root -o root -m 0777 tazlito $(PREFIX)/bin + install -g root -o root -m 0755 -d /etc/tazlito + install -g root -o root -m 0644 tazlito.conf /etc/tazlito + #install -g root -o root -m 0644 distro-packages.list /etc/tazlito + @echo "Installing Tazlito documentation..." + install -g root -o root -m 0755 -d /usr/share/doc/tazlito + install -g root -o root -m 0644 doc/tazlito.html /usr/share/doc/tazlito + +# Uninstallation commands. + +uninstall: + rm -f $(PREFIX)/bin/tazlito + rm -rf /etc/tazlito + rm -rf /usr/share/doc/tazlito + diff -r 8dedc9bde8e2 -r 3abe847f2264 tazlito --- a/tazlito Sat Dec 01 12:00:39 2007 +0100 +++ b/tazlito Sat Dec 01 12:10:11 2007 +0100 @@ -10,7 +10,7 @@ # (C) 2007 SliTaz - GNU General Public License. # Author : # -VERSION=1.1 +VERSION=1.2pre # Tazlito configuration variables to be shorter # and to use words rater than numbers. @@ -21,9 +21,9 @@ INITRAMFS=rootfs.gz # Try to include config file, continue if command is gen-config or exit. -# The main config is in /etc used by default. -if [ -f "/etc/slitaz-tools/tazlito.conf" ] ; then - CONFIG_FILE="/etc/slitaz-tools/tazlito.conf" +# The main config used by default is in /etc/tazlito. +if [ -f "/etc/tazlito/tazlito.conf" ] ; then + CONFIG_FILE="/etc/tazlito/tazlito.conf" fi # Specific distro config file can be put in a distro tree. if [ -f "$TOP_DIR/tazlito.conf" ] ; then