annotate autogen.sh @ 1535:117890c32cde trunk

[svn] - fixed default values for libnotify plugin
author giacomo
date Tue, 08 Aug 2006 10:06:12 -0700
parents 2810fdc8f193
children 84006edb5293
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
51
82fa2e996291 [svn] Removing all Makefile.in's
msameer
parents: 0
diff changeset
11 AUTOCONF=${AUTOCONF:-autoconf}
82fa2e996291 [svn] Removing all Makefile.in's
msameer
parents: 0
diff changeset
12 ACLOCAL=${ACLOCAL:-aclocal-1.9}
82fa2e996291 [svn] Removing all Makefile.in's
msameer
parents: 0
diff changeset
13 AUTOHEADER=${AUTOHEADER:-autoheader}
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 dump_help_screen ()
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 echo "Usage: gen-auto-scripts.sh [options]"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 echo "options:"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 echo " -n skip CVS changelog creation"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 echo " -h,--help show this help screen"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 exit 0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 parse_options ()
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 while test "$1" != "" ; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 case $1 in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 -h|--help)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 dump_help_screen
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 -n)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 SKIP_CVS_CHANGELOG=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 echo Invalid argument - $1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 dump_help_screen
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 shift
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 run_or_die ()
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 COMMAND=$1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 # check for empty commands
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 if test -z "$COMMAND" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 echo "*warning* no command specified"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 return 1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 shift;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 OPTIONS="$@"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 # print a message
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 echo -n "*info* running $COMMAND"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 if test -n "$OPTIONS" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 echo " ($OPTIONS)"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 # run or die
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 $COMMAND $OPTIONS ; RESULT=$?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 if test $RESULT -ne 0 ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 echo "*error* $COMMAND failed. (exit code = $RESULT)"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 exit 1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 return 0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 parse_options "$@"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 cd $TOP_DIR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80
51
82fa2e996291 [svn] Removing all Makefile.in's
msameer
parents: 0
diff changeset
81 run_or_die $ACLOCAL -I m4
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82 run_or_die $AUTOHEADER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 run_or_die $AUTOCONF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85 cd $LAST_DIR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86