From: Darrick J. Wong Date: Tue, 1 Apr 2025 14:43:57 +0000 (-0700) Subject: xfs_scrub_all: rename source code to .py.in X-Git-Tag: v6.14.0~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a071c8c41a58c1195dc898b04325ede9999c8df;p=thirdparty%2Fxfsprogs-dev.git xfs_scrub_all: rename source code to .py.in 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 Reviewed-by: Andrey Albershteyn Reviewed-by: Bill O'Donnell --- diff --git a/scrub/Makefile b/scrub/Makefile index 934b9062..b8105f69 100644 --- a/scrub/Makefile +++ b/scrub/Makefile @@ -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) diff --git a/scrub/xfs_scrub_all.in b/scrub/xfs_scrub_all.py.in similarity index 100% rename from scrub/xfs_scrub_all.in rename to scrub/xfs_scrub_all.py.in