]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_scrub_all: rename source code to .py.in
authorDarrick J. Wong <djwong@kernel.org>
Tue, 1 Apr 2025 14:43:57 +0000 (07:43 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Tue, 8 Apr 2025 09:20:10 +0000 (11:20 +0200)
Rename this source code file to have an extention of ".py.in" so that
editors and xgettext can "smartly" detect the source code type from the
file extension.  This will become important for adding localization to
the strings printed.  No functional changes.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
scrub/Makefile
scrub/xfs_scrub_all.py.in [moved from scrub/xfs_scrub_all.in with 100% similarity]

index 934b9062651bf16f4937a249b7d8b3e4392a8ccc..b8105f69e4cc57f4ee36a6a6f53b8f53f0d1ece5 100644 (file)
@@ -14,7 +14,7 @@ scrub_media_svcname=xfs_scrub_media@.service
 ifeq ($(SCRUB_PREREQS),yes)
 LTCOMMAND = xfs_scrub
 INSTALL_SCRUB = install-scrub
-XFS_SCRUB_ALL_PROG = xfs_scrub_all
+XFS_SCRUB_ALL_PROG = xfs_scrub_all.py
 XFS_SCRUB_FAIL_PROG = xfs_scrub_fail
 XFS_SCRUB_ARGS = -p
 XFS_SCRUB_SERVICE_ARGS = -b -o autofsck
@@ -116,7 +116,7 @@ xfs_scrub_all.timer: xfs_scrub_all.timer.in $(builddefs)
        @echo "    [SED]    $@"
        $(Q)$(SED) -e "s|@pkg_state_dir@|$(PKG_STATE_DIR)|g" < $< > $@
 
-xfs_scrub_all: xfs_scrub_all.in $(builddefs)
+$(XFS_SCRUB_ALL_PROG): $(XFS_SCRUB_ALL_PROG).in $(builddefs)
        @echo "    [SED]    $@"
        $(Q)$(SED) -e "s|@sbindir@|$(PKG_SBIN_DIR)|g" \
                   -e "s|@scrub_svcname@|$(scrub_svcname)|g" \
@@ -168,7 +168,7 @@ install-crond: default $(CRONTABS)
 install-scrub: default
        $(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
        $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_SBIN_DIR)
-       $(INSTALL) -m 755 $(XFS_SCRUB_ALL_PROG) $(PKG_SBIN_DIR)
+       $(INSTALL) -m 755 $(XFS_SCRUB_ALL_PROG) $(PKG_SBIN_DIR)/xfs_scrub_all
        $(INSTALL) -m 755 -d $(PKG_STATE_DIR)
 
 install-udev: $(UDEV_RULES)