[TYPO3-english] Allow .htaccess in $TYPO3_CONF_VARS['EXT']['excludeForPackaging']

Josef F. Glatz typo3 at josefglatz.at
Fri Mar 2 14:30:49 CET 2012


Am 28.02.2012 16:46, schrieb Jigal van Hemert:
> On 28-2-2012 15:06, Josef F. Glatz wrote:
>> I want to configure $TYPO3_CONF_VARS['EXT']['excludeForPackaging']
>> in the TYPO3 Global Configuration, that it include .htaccess files.
>>
>> The default value for the ['EXT']['excludeForPackaging'] is:
>>
>> (CVS|\\..*|.*~|.*\\.bak)
>>
>> As you can see, all files ".*" are excluded while packaging a TYPO3
>> extension via extension manager. Which syntax do I need, to exclude all
>> ".*" files except ".htaccess" ?
>
> Not tested, not perfect, but I think it will do the job in normal cases:
>
> (CVS|\\..*(?!htaccess)|.*~|.*\\.bak)
>
> \\..*(?!htaccess) will match a dot possibly followed by something but it
> can't end with htaccess. So it will also include .myhtaccess in
> packaging but that won't be a big problem I guess.
>

Thank you for your answer! I will test it later.

-- 
Cheers,
Josef Florian Glatz
blog:  http://typo3blog.at
vcard: http://www.josefglatz.at


More information about the TYPO3-english mailing list