annotate autogen.sh @ 2443:93686e8815a4 trunk

[svn] - Changed playback_set_random_skin() to skin_set_random_skin()
author mf0102
date Mon, 29 Jan 2007 10:29:19 -0800
parents e4c359265eb0
children 72ec866d6b81
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 #! /bin/sh
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 TOP_DIR=$(dirname $0)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 LAST_DIR=$PWD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 if test ! -f $TOP_DIR/configure.ac ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 echo "You must execute this script from the top level directory."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 exit 1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10
2030
f158696b050d [svn] - touch audacious/.svn because gentoo's subversion eclass sucks
nenolod
parents: 1677
diff changeset
11 ### XXX: Gentoo's subversion.eclass sucks, yet people insist on using
f158696b050d [svn] - touch audacious/.svn because gentoo's subversion eclass sucks
nenolod
parents: 1677
diff changeset
12 ### it.
2072
e4c359265eb0 [svn] Shut up, mkdir.
kiyoshi
parents: 2030
diff changeset
13 mkdir -p audacious/.svn
2030
f158696b050d [svn] - touch audacious/.svn because gentoo's subversion eclass sucks
nenolod
parents: 1677
diff changeset
14
51
82fa2e996291 [svn] Removing all Makefile.in's
msameer
parents: 0
diff changeset
15 AUTOCONF=${AUTOCONF:-autoconf}
1620
84006edb5293 [svn] - don't be picky about what aclocal version we are using.
nenolod
parents: 745
diff changeset
16 ACLOCAL=${ACLOCAL:-aclocal}
51
82fa2e996291 [svn] Removing all Makefile.in's
msameer
parents: 0
diff changeset
17 AUTOHEADER=${AUTOHEADER:-autoheader}
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 dump_help_screen ()
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 echo "Usage: gen-auto-scripts.sh [options]"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 echo "options:"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 echo " -n skip CVS changelog creation"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 echo " -h,--help show this help screen"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 exit 0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 parse_options ()
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 while test "$1" != "" ; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 case $1 in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 -h|--help)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 dump_help_screen
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 -n)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 SKIP_CVS_CHANGELOG=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 echo Invalid argument - $1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 dump_help_screen
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 shift
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 run_or_die ()
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 COMMAND=$1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 # check for empty commands
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 if test -z "$COMMAND" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 echo "*warning* no command specified"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 return 1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 shift;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 OPTIONS="$@"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 # print a message
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 echo -n "*info* running $COMMAND"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 if test -n "$OPTIONS" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 echo " ($OPTIONS)"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 # run or die
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 $COMMAND $OPTIONS ; RESULT=$?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 if test $RESULT -ne 0 ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 echo "*error* $COMMAND failed. (exit code = $RESULT)"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 exit 1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 return 0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81 parse_options "$@"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 cd $TOP_DIR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84
51
82fa2e996291 [svn] Removing all Makefile.in's
msameer
parents: 0
diff changeset
85 run_or_die $ACLOCAL -I m4
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 run_or_die $AUTOHEADER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87 run_or_die $AUTOCONF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89 cd $LAST_DIR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90