[development] version = "$Name$" considered harmful in .info files

Derek Wright drupal at dwwright.net
Thu Jun 14 00:29:19 UTC 2007


On Jun 13, 2007, at 5:26 PM, Khalid Baheyeldin wrote:

> #!/bin/sh
> for FILE in `find . -name "*.info"`
> do
>   ORIG=$FILE.orig
>   cp $FILE $ORIG
>   cat $ORIG | grep -v "version.*=" > $FILE
>   rm $ORIG
> done

or, what i was using for my own modules:

perl -pi.orig -e "s/^version.*\n$//;" `find . -name "*.info"`

;)

but thanks anyway...

-derek




More information about the development mailing list