slitaz-dev-tools diff libtaz/libtaz @ rev 31
Tiny edits
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Mar 06 16:43:54 2011 +0000 (2011-03-06) |
parents | 3ad78186f531 |
children | cb635b5b55a4 |
line diff
1.1 --- a/libtaz/libtaz Thu Feb 24 02:33:47 2011 +0000 1.2 +++ b/libtaz/libtaz Sun Mar 06 16:43:54 2011 +0000 1.3 @@ -1,13 +1,13 @@ 1.4 ######################################################################## 1.5 # This is the SliTaz main library (/usr/lib/slitaz/libtaz). 1.6 -# libtaz is modular : see explanation of the function source_lib bellow. 1.7 +# libtaz is modular : see explanation of the function source_lib below. 1.8 # 1.9 # Author : Antoine Bodin <gokhlayeh@mailoo.org> 1.10 # 1.11 # Version : 0.0.1 (alpha1) 1.12 # 1.13 -# Documentation : none (will be avaible with beta version) 1.14 -# The documentation will include an explanation of all fonction, how to 1.15 +# Documentation : none (will be available with beta version) 1.16 +# The documentation will include an explanation of all functions, how to 1.17 # use them and how to improve this library. 1.18 # 1.19 # Devnotes (suppress while beta is released) : 1.20 @@ -15,22 +15,22 @@ 1.21 # Add a generic create/cleanup script for tmp files ? 1.22 # check_for (pkg on cmd line, pkg, receipt, etc.) -> tazwok,tazpkg,list 1.23 # 1.24 -# Note : as the work is progress some part are dirty code or some other 1.25 -# are note finish. I update this because we need the libdep 1.26 +# Note: as the work is in progress some parts are dirty code or others 1.27 +# are not finished. I will update this because we need the libdep. 1.28 # 1.29 ######################################################################## 1.30 # INITIALIZATION 1.31 ######################## 1.32 # Load the Slitaz main configuration file : /etc/slitaz/slitaz.conf. 1.33 -# Don't load it if application is called by one having already loaded it, 1.34 +# Don't load it if an application is called by one already, 1.35 # to avoid options overwrite. 1.36 1.37 . /etc/slitaz/slitaz.conf 1.38 1.39 -# Load the command as some module use it. 1.40 +# Load the command as some modules use it. 1.41 log_command="$0 $@" 1.42 1.43 -# Define & create temporary directory as it's used by report. 1.44 +# Define & create a temporary directory as it's used by report. 1.45 tmp=/tmp/$(basename $0)-$$ 1.46 mkdir -p $tmp 1.47 1.48 @@ -38,7 +38,7 @@ 1.49 # EXIT FUNCTIONS 1.50 ######################## 1.51 # run_on_exit commands are executed when apps exit (whatever the reason) 1.52 -# run_on_kill commands are executed only when apps is killed (or Ctrl+C) 1.53 +# run_on_kill commands are executed only when apps are killed (or Ctrl+C) 1.54 # Note : one command per line in the variable. 1.55 run_on_exit="rm -rf $tmp" 1.56 run_on_kill="" 1.57 @@ -66,23 +66,23 @@ 1.58 1.59 ######################################################################## 1.60 # This function should be used after sourcing libtaz to source modular 1.61 -# libraries. Libtaz only source main configuration file and contain only 1.62 -# this function. The modular libraries should be put in slitaz lib 1.63 +# libraries. Libtaz only sources main configuration files and contains only 1.64 +# this function. The modular libraries should be put in the slitaz lib 1.65 # directory (/usr/lib/slitaz/libtaz-modules). 1.66 # 1.67 # Usage : source_lib lib [lib2] [lib3] ... 1.68 # 1.69 -# Description of libraries including with libtaz : 1.70 +# Description of libraries included with libtaz : 1.71 # commons : functions used by most SliTaz scripts 1.72 # get_option* : function to check & parse arguments of a command line 1.73 -# report : display and log script in a configurable way 1.74 +# report : display and log scripts in a configurable way 1.75 # 1.76 -# * need a code rewiew, please don't use them for production : code can 1.77 +# * needs a code review, please don't use them for production : code can 1.78 # be hardly modified. 1.79 # 1.80 -# All theses libraries contains additionnal functions. Check them to 1.81 -# if you want to know wich ones and how to use them. 1.82 -# More information will be avaible at beta release. 1.83 +# All these libraries contains additional functions. Check them to 1.84 +# know which ones and how to use them. 1.85 +# More information will be available at beta release. 1.86 1.87 sourced_lib="" 1.88 source_lib()