#!/bin/sh # Run the beautifier "Uncrustify" on a single file. # Because the file "uncrustify.cfg" only exists in the top level of the project # you should run this script from there so this script can find your uncrustify.cfg file. UNCRUSTIFYTMP=/tmp/uncrustify.tmp if [ ! -f uncrustify.cfg ]; then echo "unable to find uncrustify.cfg, aborting" exit 1 fi UNCRUSTIFYBIN=`which uncrustify` if [ "$UNCRUSTIFYBIN" = "" ]; then echo "you must specify uncrustify in your PATH, I cannot find it" exit 2 fi if [ $# -lt 1 ]; then echo "Usage $0 " exit 3 fi uncrustify -c uncrustify.cfg <$1 >$UNCRUSTIFYTMP # you can comment this out while tuning the uncrustify.cfg file: mv $UNCRUSTIFYTMP $1 a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-58643691-1', 'auto'); ga('send', 'pageview');
summaryrefslogtreecommitdiff
path: root/app.js
blob: d38e01ac01820de437ddcb5ae87eb0196988c162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35