diff --git a/Makefile b/Makefile index ba9a041b..ae30517f 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 a02f3c64..4d60a720 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 +
+