Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp4629lqq; Wed, 12 Jun 2024 14:27:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXwB8i7oLKeJCnkv9gVZKy3vGAeXiUUyusgHyCqoIJvg9iTKcGjppEgbhbIRNRadCXMqWgUPgbup0idyl3Cyv5kfNzJ3hOJymLCM1XR+A== X-Google-Smtp-Source: AGHT+IEzpEVNsCRAICtJO6ABw83BqiMBwwhNdp01VmhhnigLRhxAkAsWfyCJf/4cdsoupaVk7dJI X-Received: by 2002:a05:620a:29c2:b0:795:58fc:a985 with SMTP id af79cd13be357-797f60f5f81mr282785585a.66.1718227668079; Wed, 12 Jun 2024 14:27:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718227668; cv=pass; d=google.com; s=arc-20160816; b=pgHMpwHtjiOdbVfF8Hqn8q9j8nxPiDbSAGnoZfuLXBDtNsFc8Sjs39Cx1q+vgFrpaF LPLUAloYL12rZdXsLv7oiQ7Duv6Q0bh/uZodqYpu/zvPXEVA3NXlZjafyFwrkiJ/PSef jjlKHEJooNozt1sBiEElMdE2YCx6oIX6jmUjr6/oyG5veIKh8CYEHuX4jg+UyPGUyabu arXYSlMo5lMJMAgo9AO3o9jB7Kwx/Nt5tA3FcmU/pO3OwRtfa4KuJ4pvR/VSAj7lpZHP JnInMAldDeaUZwh7SAumfaGIDe0u0fOR6mC5CUDnU7AfaoVvdbtSyWG8dgWaGtPw5Btt 7wGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature:dkim-filter; bh=judTS4e2A9LJPkUHh8Mr7Rl655ZESyNbLNfX5WEC/0A=; fh=tXTY8APPCldTWMr6KV6REqglnOBCB0jKiKReTrdF1k4=; b=SvRgWPTG9c2MAw7wpjK51iDs7RVxZeumHwZr7IeESIFBIIWaenRrbD7M0DarUz+GB+ CJFNKhu1y1ZweFAcnMwX6hGKYlPcqbLskPrqrDm6x1EE8dwgEDvDq7Ts6C94pWbpUIt1 +jx2A3Rc82aj6N60ktwDFJVuzlSJlCT4K7uA6Q/uHrPWynCrbj7XacMQMrb/Uub7N/p6 hNGFiX0f9VY/HInZk+XQ4fSLPBiOiKNm5dln4eMwRDIFcdsHasgLXJc2Xvxr0pBpj9kv pmZCj59BrHrP5OTBS0+QOzNzKQiKZ9tcUDoNVqfKe//lkWzKD+4PCRHwS0PhT4pSXXqR 9RhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b="JYUbA/sH"; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-212276-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-441f3126bc2si36571cf.791.2024.06.12.14.27.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 14:27:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212276-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b="JYUbA/sH"; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-212276-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C8B2A1C20F89 for ; Wed, 12 Jun 2024 21:27:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5690F86277; Wed, 12 Jun 2024 21:27:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="JYUbA/sH" Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF91484FCC; Wed, 12 Jun 2024 21:27:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.79.88.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718227660; cv=none; b=aQF8RoN7lkFOHrcToBlRoiDfWM3xsENItRF4Zj+/w9kFEf7dBDgMyIM1S0p8hfOrBtSLQ22q+q00vrAhtqRm4XnA4DsWDeaBhRF0zVW5gxC3m0pwe5BZ/CfwgybP+Ooz3mt+ZTswF4gywYNZVdekfqSUihfWrnozepBc4qrV+Y4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718227660; c=relaxed/simple; bh=iNKRAVmgVPuJjkZmutjGGUinWHg9HGMQVM1k9mQiruM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=NC33ljqN5YU0+hICfoK+46Q5Low/77CdT3msMZjbesM4+N1XEECzQ5bnMmwnbc9qIudiJW7rrRu8olKOykjFz7L9TxoCP8kR1F8OOFA4BvumCLZD9tpfNJ5YW7cqd7GW7L9jWyHOcOY86QKzoTXyaicZEoL3eep4uGZJRbR0YXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net; spf=pass smtp.mailfrom=lwn.net; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b=JYUbA/sH; arc=none smtp.client-ip=45.79.88.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net E43B745E09 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1718227658; bh=judTS4e2A9LJPkUHh8Mr7Rl655ZESyNbLNfX5WEC/0A=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=JYUbA/sHmBKyzx3Msqf+4dR2is282yF6FGJpHw+tKhq77PptEDUiZ0zgJok6KlFIX V7SiWwk1+e9W4xHb+GDZA4mb97du4cTT3Hp/FOI/ztIpNZB4YW43AxkriA2PtDstYb wkldFEGwwryXfJeJW74BvaKuAJ0zhN8tqTwN/a8BtaHDNvuh+5z9pStNVMbT8VcXzs YMg4x7IQ33nGG5xO/s0/OGh49FMSMDL9XJEtG8PuFwskqg4kw0nw/xoida52g6HJ9D PF2o95v9i18Mlwzh76X/h1rgVUaLHAHRe8uftXT2AeWBGj37ZG7yqwEXeKRG2T2FzV Yk8UKY2yclP4w== Received: from localhost (unknown [IPv6:2601:280:5e00:625::1fe]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id E43B745E09; Wed, 12 Jun 2024 21:27:37 +0000 (UTC) From: Jonathan Corbet To: Dongliang Mu , Alex Shi , Yanteng Si Cc: hust-os-kernel-patches@googlegroups.com, linux-doc@vger.kernel.org, Dongliang Mu , Cheng Ziqiu , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] scripts: add scripts/checktransupdate.py In-Reply-To: <20240611131723.53515-1-dzm91@hust.edu.cn> References: <20240611131723.53515-1-dzm91@hust.edu.cn> Date: Wed, 12 Jun 2024 15:27:37 -0600 Message-ID: <87plslonqu.fsf@trenco.lwn.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Dongliang Mu writes: > The checktransupdate.py script helps track the translation status of > the documentation in different locales, e.g., zh_CN and verify if > these documenation is up-to-date. More specially, it uses `git log` > commit to find the latest english commit from the translation commit > (order by author date) and the latest english commits from HEAD. If > differences occur, report the file and commits that need to be updated. > > Signed-off-by: Dongliang Mu > Signed-off-by: Cheng Ziqiu > --- > v1->v2: revise the output format of git commits > add some description and usage of this script > scripts/checktransupdate.py | 203 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 203 insertions(+) > create mode 100755 scripts/checktransupdate.py I have applied this, it seems like a useful tool. I do wish the code looked like something a bit closer to the kernel coding style, but so it goes. Thanks, jon