]> git.pld-linux.org Git - packages/nginx.git/commitdiff
- process all extensions
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 25 Feb 2007 15:45:00 +0000 (15:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nginx-mime.types.sh -> 1.2

nginx-mime.types.sh

index fdc31529a80b135be19d9b3fdeada4582bf5557b..14df64b7f9c949a27048a08a87e835e359eeedcb 100644 (file)
@@ -16,7 +16,13 @@ awk '!/^#/ && $2 { print } ' $mimetypes | \
 # sort it \
 LC_ALL=C sort -u | \
 # build conf fragment
-awk '{ printf("\t%-40s %s;\n", $1, $2)}' \
+awk '{
+       m = $1;
+       v = substr($0, length($1));
+       x = substr(v, index(v, $2));
+       gsub(/\t+/, " ", x);
+       printf("\t%-40s %s;\n", m, x);
+}' \
        >> mime.types
 
 # footer
This page took 0.063268 seconds and 4 git commands to generate.