ACK: [PATCH] update_version.sh: Insert just date + time in date stamp

Alex Hung alex.hung at canonical.com
Mon Mar 4 08:35:29 UTC 2013


On 02/23/2013 01:08 AM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> The update_version.sh script is inserting some international strings
> into the FWTS_DATE string which is not was intended.  For example:
>
> fwts -v
> fwts, Version V0.26.05, 四 2月 7 09:14:47 CST 2013
>
> ..so alter this so we just dump the date and time as digits and
> don't dump out the day or month strings.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>   update_version.sh | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/update_version.sh b/update_version.sh
> index dae8141..2eefe10 100755
> --- a/update_version.sh
> +++ b/update_version.sh
> @@ -27,7 +27,7 @@ cat << EOF > src/lib/include/fwts_version.h
>    */
>   EOF
>   echo '#define FWTS_VERSION "'$version'"' >> src/lib/include/fwts_version.h
> -echo '#define FWTS_DATE    "'`date`'"' >> src/lib/include/fwts_version.h
> +echo '#define FWTS_DATE    "'`date "+%x %T"`'"' >> src/lib/include/fwts_version.h
>   git add src/lib/include/fwts_version.h
>   git commit -s -m"lib: fwts_version.h - update to $version"
>   git tag -m'"Version '$1'"' $1
>
Acked-by: Alex Hung <alex.hung at canonical.com>



More information about the fwts-devel mailing list