]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/uncrustify.sh
Uncrustify menu/{anim,item}/*
[xonotic/xonotic-data.pk3dir.git] / qcsrc / uncrustify.sh
index 2df39aa3a83c904623621483762ca4722a1f4415..b36953e366231db2192a145697470e6fa5d016a4 100755 (executable)
@@ -3,7 +3,7 @@ fix_function_types() {
        #  void(void) func;
        # ) wrong and removes the space between type and variable. Fix this by
        # a simple sed on ")letter" which should normally not occur.
-       sed -e 's/)\([A-Za-z0-9]\)/) \1/g' "$@"
+       sed -e 's/)\([A-Za-z_]\)/) \1/g' "$@"
 }
 
 if [ -z "$UNCRUSTIFY_CONFIG" ]; then
@@ -16,7 +16,7 @@ case "$#" in
                fix_function_types
                ;;
        *)
-               uncrustify --replace --no-backup -c "$UNCRUSTIFY_CONFIG" "$@" &&\
+               uncrustify --replace --no-backup -c "$UNCRUSTIFY_CONFIG" "$@" ;\
                fix_function_types -i "$@"
                ;;
 esac