From 9d2a11a3e51b97e4aaa47b8a2536cb6e0b2cbd7b Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Sun, 8 Aug 2010 07:33:13 +0000 Subject: [PATCH] reminder for myself... git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5566 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- packages/maps/official/official_readme.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/maps/official/official_readme.txt b/packages/maps/official/official_readme.txt index 5f98f6bf..2b318156 100644 --- a/packages/maps/official/official_readme.txt +++ b/packages/maps/official/official_readme.txt @@ -1,3 +1,16 @@ +To ensure you have no errors with AssaultCube. Do not edit, rename or delete maps in this directory. Do not add files to this directory. + +Note for folder: +================ +Handy linux command for keeping *.cfg sizes small: + gawk '{sub(/\r$/,"")};1' INPUT_FILE | gawk -F'//' '{print $1}' | gawk '{sub(/[ \t]+$/, "")};1' | gawk NF > OUTPUT_FILE + +* Converts all new-lines to UNIX format (instead of DOS format). +* Removes all comments in the file. +* Removes all trailing spaces/tabs. +* Removes all blank lines. + +Remember to replace the words INPUT_FILE and OUTPUT_FILE in this script with the file. \ No newline at end of file