From 875c74934c231db6ed92cd3363d41a1bc724878e Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Thu, 29 Mar 2012 13:00:17 +0200 Subject: Add new command "make cleanup-style" --- Makefile | 13 +++++++++++++ index.html | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/Makefile b/Makefile index ba9a041..ae30517 100644 --- a/Makefile +++ b/Makefile @@ -218,3 +218,16 @@ update-checksum-%: $(call DOWNLOAD_PKG_ARCHIVE,$*) $(SED) -i 's/^\([^ ]*_CHECKSUM *:=\).*/\1 '"`$(call PKG_CHECKSUM,$*)`"'/' '$(TOP_DIR)/src/$*.mk' +cleanup-style: + @$(foreach FILE,$(wildcard $(addprefix $(TOP_DIR)/,Makefile index.html CNAME src/*.mk src/*test.* tools/*)),\ + echo '[cleanup] $(FILE)'; \ + $(SED) -i ' \ + s/\r//g; \ + s/[ \t]\+$$//; \ + s,^#!/bin/bash$$,#!/usr/bin/env bash,; \ + $(if $(filter %Makefile,$(FILE)),,\ + s/\t/ /g; \ + ) \ + ' $(FILE); \ + ) + diff --git a/index.html b/index.html index a02f3c6..4d60a72 100644 --- a/index.html +++ b/index.html @@ -862,6 +862,14 @@ USE_OSGPLUGIN(<plugin2>) download the new versions and note their checksums +
make cleanup-style
+ +
+ for internal use only! + – + cleanup coding style +
+ -- cgit v0.12