From patchwork Sat Jun 15 11:12:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zach DeCook X-Patchwork-Id: 20326 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 451DAC3237 for ; Sat, 15 Jun 2024 11:13:07 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 16F1A6548D; Sat, 15 Jun 2024 13:13:06 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=librem.one header.i=@librem.one header.b="Q3lDlJ0K"; dkim-atps=neutral Received: from mx1.librem.one (mx1.librem.one [138.201.176.93]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2DEA965458 for ; Sat, 15 Jun 2024 13:13:04 +0200 (CEST) Received: from smtp.librem.one (unknown [192.241.214.14]) by mx1.librem.one (Postfix) with ESMTPS id 27B9E81EF4 for ; Sat, 15 Jun 2024 04:13:03 -0700 (PDT) Authentication-Results: name mx1.librem.one; dmarc=fail (p=reject dis=none) header.from=librem.one From: Zach DeCook DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=librem.one; s=smtp; t=1718449981; bh=RzsU4FNuDlYs/I4a+5BdTdWbFlfGUMGYNxOYqHdDDeE=; h=From:To:Cc:Subject:Date:From; b=Q3lDlJ0Kyy5uI6nI6+repqjTtUcuboCWpiXyXuGG41s9flUISX1NmSPUJWyiUheQg 8/TvdxDh1F92g2/kqieFt8GbO+tKvFEN2cN+Ofmc64D01KKt67nIFabrWiIZUJb7QA n1963Hv5JYqDbkbxU9ggmXTfir66psZGVPTIuS8lYXmiCQy2CEIjJMksRtxUR0yu/a aNV9ubFVpkcLL7nbvy8olBgJzmV80yyBi3oFXF7JNsIAzQqRO+RUChl75R9Okw/UGz NpiNuwCFgCqoKXDV/5y2NiXvnytNCFUQUUvswigDXNPnaWXYuEjqUHgSsoBz0fO/JN s0uhmep3Kg68A== To: libcamera-devel@lists.libcamera.org Cc: Zach DeCook Subject: [PATCH v2 1/2] dirty version string: Don't use non-posix arguments for date date will output a date like 2024-06-05T17:06:30EDT Date: Sat, 15 Jun 2024 07:12:43 -0400 Message-ID: <20240615111244.4573-1-zachdecook@librem.one> X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" (time zone is different than currently specified) Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-off-by: Zach DeCook --- utils/gen-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/gen-version.sh b/utils/gen-version.sh index e1f7ca7b..1b818e9e 100755 --- a/utils/gen-version.sh +++ b/utils/gen-version.sh @@ -42,7 +42,7 @@ if [ -z "$build_dir" ] || (echo "$build_dir" | grep -q "$src_dir") then git update-index --refresh > /dev/null 2>&1 fi -git diff-index --quiet HEAD || version="$version-dirty ($(date --iso-8601=seconds))" +git diff-index --quiet HEAD || version="$version-dirty ($(date +%Y-%m-%dT%H:%M:%S%Z))" # If a project version is provided, use it to replace the version number. if [ -n "$project_version" ]