Add albumview plugin
[gmpc-plugins.git] / autogen.sh
blob67a8107eb7dd2daba15808f919a8001b1076a6ca
1 #!/bin/bash
3 function get_plugin ()
5 if [ ! -d "${1}" ]; then
6 echo "Cloning ${1}"
7 git clone "git://repo.or.cz/${1}"
8 # generate the configure in the subdir
9 cd "${1}"
10 else
11 echo "Updating ${1}"
12 cd "${1}"
13 git pull
15 if [ $? -ne 0 ]; then
16 cd "${OLDPWD}"
17 rm -rfv "${1}"
18 get_plugin "${1}"
22 NOCONFIGURE=yes ./autogen.sh
23 cd ${OLDPWD}
26 function get_hg_cmake ()
28 if [ ! -d "${1}" ]; then
29 echo "Cloning ${1}"
30 hg clone "${2}" "${1}"
31 # generate the configure in the subdir
32 cd "${1}"
33 else
34 echo "Updating ${1}"
35 cd "${1}"
36 hg pull
37 hg update
39 if [ $? -ne 0 ]; then
40 cd "${OLDPWD}"
41 rm -rfv "${1}"
42 get_hg_cmake ${1} ${2}
46 cmake -D CMAKE_INSTALL_PREFIX=/usr -D debug=on .
47 cd ${OLDPWD}
50 get_plugin gmpc-alarm
51 get_plugin gmpc-avahi
52 get_plugin gmpc-coveramazon
53 get_plugin gmpc-extraplaylist
54 get_plugin gmpc-jamendo
55 get_plugin gmpc-last.fm
56 get_plugin gmpc-libnotify
57 get_plugin gmpc-lirc
58 get_plugin gmpc-lyrics
59 get_plugin gmpc-lyricwiki
60 get_plugin gmpc-magnatune
61 get_plugin gmpc-mdcover
62 get_plugin gmpc-shout
63 get_plugin gmpc-mserver
64 #get_plugin gmpc-lastfmradio
65 get_plugin gmpc-tagedit
66 get_plugin gmpc-libnotify
67 get_plugin gmpc-wikipedia
68 get_plugin gmpc-playlistsort
69 get_plugin gmpc-lyricsplugin
70 get_plugin gmpc-albumview
72 # get_hg_cmake gmpc-dynamicplaylist http://bitbucket.org/misery/dynamic-playlist/
74 aclocal
75 automake --gnu -f --add-missing
76 autoconf
78 echo "Running plugins configure"
80 if test x$NOCONFIGURE = x; then
81 ./configure "$@" || exit 1