From bc83c0772706ac602ab5a15a311f639d762c8b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 29 Sep 2023 18:10:09 +0200 Subject: [PATCH] scripts: update update-orc-dist-files.py scripts for new gst-indent And fix python indentation with autopep8 Part-of: --- .../gst-plugins-bad/scripts/update-orc-dist-files.py | 9 ++++----- .../gst-plugins-base/scripts/update-orc-dist-files.py | 9 ++++----- .../gst-plugins-good/scripts/update-orc-dist-files.py | 9 ++++----- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/subprojects/gst-plugins-bad/scripts/update-orc-dist-files.py b/subprojects/gst-plugins-bad/scripts/update-orc-dist-files.py index 592d04e6e7..1ba5ded50e 100755 --- a/subprojects/gst-plugins-bad/scripts/update-orc-dist-files.py +++ b/subprojects/gst-plugins-bad/scripts/update-orc-dist-files.py @@ -26,14 +26,14 @@ import shutil import subprocess import sys -assert(len(sys.argv) == 4) +assert (len(sys.argv) == 4) orc_file = sys.argv[1] gen_header = sys.argv[2] gen_source = sys.argv[3] # split off .orc suffix -assert(orc_file.endswith('.orc')) +assert (orc_file.endswith('.orc')) orc_src_base = sys.argv[1][:-4] # figure out names of disted backup files @@ -44,6 +44,5 @@ dist_c = orc_src_base + "-dist.c" shutil.copyfile(gen_header, dist_h) shutil.copyfile(gen_source, dist_c) -# run gst-indent on the .c files (twice, because gnu indent) -subprocess.run(['gst-indent', dist_c]) -subprocess.run(['gst-indent', dist_c]) +# run gst-indent on the .c files +subprocess.run(['gst-indent-1.0', dist_c]) diff --git a/subprojects/gst-plugins-base/scripts/update-orc-dist-files.py b/subprojects/gst-plugins-base/scripts/update-orc-dist-files.py index 592d04e6e7..1ba5ded50e 100755 --- a/subprojects/gst-plugins-base/scripts/update-orc-dist-files.py +++ b/subprojects/gst-plugins-base/scripts/update-orc-dist-files.py @@ -26,14 +26,14 @@ import shutil import subprocess import sys -assert(len(sys.argv) == 4) +assert (len(sys.argv) == 4) orc_file = sys.argv[1] gen_header = sys.argv[2] gen_source = sys.argv[3] # split off .orc suffix -assert(orc_file.endswith('.orc')) +assert (orc_file.endswith('.orc')) orc_src_base = sys.argv[1][:-4] # figure out names of disted backup files @@ -44,6 +44,5 @@ dist_c = orc_src_base + "-dist.c" shutil.copyfile(gen_header, dist_h) shutil.copyfile(gen_source, dist_c) -# run gst-indent on the .c files (twice, because gnu indent) -subprocess.run(['gst-indent', dist_c]) -subprocess.run(['gst-indent', dist_c]) +# run gst-indent on the .c files +subprocess.run(['gst-indent-1.0', dist_c]) diff --git a/subprojects/gst-plugins-good/scripts/update-orc-dist-files.py b/subprojects/gst-plugins-good/scripts/update-orc-dist-files.py index 592d04e6e7..1ba5ded50e 100755 --- a/subprojects/gst-plugins-good/scripts/update-orc-dist-files.py +++ b/subprojects/gst-plugins-good/scripts/update-orc-dist-files.py @@ -26,14 +26,14 @@ import shutil import subprocess import sys -assert(len(sys.argv) == 4) +assert (len(sys.argv) == 4) orc_file = sys.argv[1] gen_header = sys.argv[2] gen_source = sys.argv[3] # split off .orc suffix -assert(orc_file.endswith('.orc')) +assert (orc_file.endswith('.orc')) orc_src_base = sys.argv[1][:-4] # figure out names of disted backup files @@ -44,6 +44,5 @@ dist_c = orc_src_base + "-dist.c" shutil.copyfile(gen_header, dist_h) shutil.copyfile(gen_source, dist_c) -# run gst-indent on the .c files (twice, because gnu indent) -subprocess.run(['gst-indent', dist_c]) -subprocess.run(['gst-indent', dist_c]) +# run gst-indent on the .c files +subprocess.run(['gst-indent-1.0', dist_c])