From: Darrick J. Wong <djwong@xxxxxxxxxx> 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@xxxxxxxxxx> --- scrub/Makefile | 6 +++--- scrub/xfs_scrub_all.py.in | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename scrub/{xfs_scrub_all.in => xfs_scrub_all.py.in} (100%) diff --git a/scrub/Makefile b/scrub/Makefile index 934b9062651bf1..b8105f69e4cc57 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