diff options
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..0638e7c --- /dev/null +++ b/autogen.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +if [ -d .git ]; then + git describe --always --tags --dirty > version # get version from git +else + echo 0.7.1 > version # hard coded versions +fi + +libtoolize +aclocal +autoconf +automake --add-missing + +CONFIGDIR=$XDG_CONFIG_HOME/cava + +if [ -z "$XDG_CONFIG_HOME" ]; then CONFIGDIR=$HOME/.config/cava; fi + +mkdir -p "$CONFIGDIR" +[ -f "$CONFIGDIR"/config ] || cp example_files/config "$CONFIGDIR"/config |