[l10n-russian CVS] l10n-checker README, 1.2, 1.3 conf_t.sh, NONE, 1.1 conf_template.sh, 1.1, NONE file_template_t.sh, NONE, 1.1 init_setup.sh, 1.1.1.1, 1.2 pkg_config_t.sh, NONE, 1.1 register_package.sh, 1.2, 1.3

Yuri Kozlov yuray-guest at alioth.debian.org
Wed Jan 4 08:01:39 UTC 2006


Update of /cvsroot/l10n-russian/l10n-checker
In directory haydn:/tmp/cvs-serv11448

Modified Files:
	README init_setup.sh register_package.sh 
Added Files:
	conf_t.sh file_template_t.sh pkg_config_t.sh 
Removed Files:
	conf_template.sh 
Log Message:


Index: register_package.sh
===================================================================
RCS file: /cvsroot/l10n-russian/l10n-checker/register_package.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- register_package.sh	4 Jan 2006 07:44:58 -0000	1.2
+++ register_package.sh	4 Jan 2006 08:01:37 -0000	1.3
@@ -1,50 +1,31 @@
 #!/bin/bash
 
 . conf.sh
+. func.sh
 
-if [ $# -eq 0 ]; then
-  echo "Usage: `basename $0` package_name [description]"
-  exit 1
-fi
+[ $# -eq 0 ] && e_prog "Usage: `basename $0` package_name [description]"
 
 PKG=$1
 
-if [ -d ${DB_DIR}/${PKG} ]; then
-  echo "Package '${PKG}' already exist"
-  exit 2
-fi
+[ -d ${DB_DIR}/${PKG} ] && e_prog "Package '${PKG}' already exist"
 
 echo "Registering package '${PKG}'"
 mkdir ${DB_DIR}/${PKG}
-if [ ! -d ${DB_DIR}/${PKG} ]; then
-  echo "Can not create dir ${DB_DIR}/${PKG}"
-  exit 3
-fi
+[ ! -d ${DB_DIR}/${PKG} ] && e_io "Can not create dir ${DB_DIR}/${PKG}"
 
 echo 'Adding description'
 echo -n $2 > ${DB_DIR}/${PKG}/desc
-if [ ! -f ${DB_DIR}/${PKG}/desc ]; then
-  echo "Can not create description file ${DB_DIR}/${PKG}/desc"
-  exit 3
-fi
+[ ! -f ${DB_DIR}/${PKG}/desc ] && e_io "Can not create description file ${DB_DIR}/${PKG}/desc"
 
 echo 'Adding template file'
-cp file_template.sh ${DB_DIR}/${PKG}/
-if [ ! -f ${DB_DIR}/${PKG}/file_template.sh ]; then
-  echo "Can not copy template file ${DB_DIR}/${PKG}/file_template.sh"
-  exit 3
-fi
-cp pkg_config.sh ${DB_DIR}/${PKG}/
-if [ ! -f ${DB_DIR}/${PKG}/pkg_config.sh ]; then
-  echo "Can not copy template file ${DB_DIR}/${PKG}/pkg_config.sh"
-  exit 3
-fi
+cp ${DB_DIR}/file_template.sh ${DB_DIR}/${PKG}/
+[ ! -f ${DB_DIR}/${PKG}/file_template.sh ] && e_io "Can not copy template file ${DB_DIR}/${PKG}/file_template.sh"
+
+cp ${DB_DIR}/pkg_config.sh ${DB_DIR}/${PKG}/
+[ ! -f ${DB_DIR}/${PKG}/pkg_config.sh ] && e_io "Can not copy template file ${DB_DIR}/${PKG}/pkg_config.sh"
 
 echo 'Making listfiles db'
 mkdir ${DB_DIR}/${PKG}/listfiles
-if [ ! -d ${DB_DIR}/${PKG}/listfiles ]; then
-  echo "Can not create dir ${DB_DIR}/${PKG}/listfiles"
-  exit 3
-fi
+[ ! -d ${DB_DIR}/${PKG}/listfiles ] && e_io "Can not create dir ${DB_DIR}/${PKG}/listfiles"
 
 exit 0

Index: init_setup.sh
===================================================================
RCS file: /cvsroot/l10n-russian/l10n-checker/init_setup.sh,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- init_setup.sh	4 Jan 2006 06:40:52 -0000	1.1.1.1
+++ init_setup.sh	4 Jan 2006 08:01:37 -0000	1.2
@@ -14,10 +14,15 @@
 
 mkdir ${DB_DIR}
 if [ ! -d ${DB_DIR} ]; then
-  echo "Can create dir ${DB_DIR}"
+  echo "Can not create dir ${DB_DIR}"
   exit 1
 fi
 
+#FIXME copy check
+cp ./file_template_t.sh ${DB_DIR}
+#FIXME copy check
+cp ./pkg_config.sh ${DB_DIR}
+
 rm -rf ${WORK_DIR}
 if [ -d ${WORK_DIR} ]; then
   echo "Can not delete dir ${WORK_DIR}"
@@ -26,7 +31,7 @@
 
 mkdir ${WORK_DIR}
 if [ ! -d ${WORK_DIR} ]; then
-  echo "Can create dir ${WORK_DIR}"
+  echo "Can not create dir ${WORK_DIR}"
   exit 1
 fi
 

--- NEW FILE: pkg_config_t.sh ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: conf_t.sh ---
DB_DIR=db
WORK_DIR=tmp
# -------------
# Don`t modify
L10N_CREATED=l10n_created


Index: README
===================================================================
RCS file: /cvsroot/l10n-russian/l10n-checker/README,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- README	4 Jan 2006 07:44:58 -0000	1.2
+++ README	4 Jan 2006 08:01:37 -0000	1.3
@@ -1,6 +1,10 @@
 1. Installation
-  - cp conf_template.sh conf.sh
+  - cp conf_t.sh conf.sh
   - vi conf.sh
+  - cp file_template_t.sh file_template.sh
+  - vi file_template.sh
+  - cp pkg_config_t.sh pkg_config.sh
+  - vi pkg_config.sh
   - ./init_setup.sh
 
 2. Adding package

--- conf_template.sh DELETED ---

--- NEW FILE: file_template_t.sh ---
(This appears to be a binary file; contents omitted.)




More information about the l10n-russian-cvs-commits mailing list