Subversion Repositories ALCASAR

Rev

Rev 1810 | Rev 1827 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1810 Rev 1811
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
 
2
 
3
# $Id: alcasar-bl.sh 1810 2016-04-04 12:46:11Z raphael.pion $
3
# $Id: alcasar-bl.sh 1811 2016-04-05 19:32:37Z richard $
4
 
4
 
5
# alcasar-bl.sh
5
# alcasar-bl.sh
6
# by Franck BOUIJOUX and Richard REY
6
# by Franck BOUIJOUX and Richard REY
7
# This script is distributed under the Gnu General Public License (GPL)
7
# This script is distributed under the Gnu General Public License (GPL)
8
 
8
 
Line 154... Line 154...
154
			categorie_type=`grep -A1 ^NAME:[$' '$'\t']*$categorie $DIR_DG_BL/global_usage | grep ^DEFAULT_TYPE | cut -d":" -f2 | tr -d " \t"`
154
			categorie_type=`grep -A1 ^NAME:[$' '$'\t']*$categorie $DIR_DG_BL/global_usage | grep ^DEFAULT_TYPE | cut -d":" -f2 | tr -d " \t"`
155
			if [ "$categorie_type" == "white" ]
155
			if [ "$categorie_type" == "white" ]
156
			then
156
			then
157
				echo "$dir_categorie" >> $WL_CATEGORIES 
157
				echo "$dir_categorie" >> $WL_CATEGORIES 
158
				echo `basename $dir_categorie` >> $WL_CATEGORIES_ENABLED  # by default all WL are enabled 
158
				echo `basename $dir_categorie` >> $WL_CATEGORIES_ENABLED  # by default all WL are enabled 
159
			else
-
 
160
				echo "$dir_categorie" >> $BL_CATEGORIES
-
 
161
			fi
159
			fi
-
 
160
			echo "$dir_categorie" >> $BL_CATEGORIES # By default all categories are in BL
162
		done
161
		done
163
		rm -f $FILE_tmp
162
		rm -f $FILE_tmp
164
		# Verify that the enabled categories are effectively in the BL (need after an update of the BL)
163
		# Verify that the enabled categories are effectively in the BL (need after an update of the BL)
165
		for ENABLE_CATEGORIE in `cat $BL_CATEGORIES_ENABLED` 
164
		for ENABLE_CATEGORIE in `cat $BL_CATEGORIES_ENABLED` 
166
		do
165
		do