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])