summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorsabetts <sabetts>2004-10-07 16:36:57 +0000
committersabetts <sabetts>2004-10-07 16:36:57 +0000
commita4a72482a7944080c6737a436966368faa058078 (patch)
tree9805dd6ed4ac2224c73d80e85209d78e7f2d8f33 /autogen.sh
parentd2db60569c8f9f2d3439edc9eee4f9330a317023 (diff)
downloadratpoison-a4a72482a7944080c6737a436966368faa058078.zip
Add a -f option to forcefully create symlinks of
missing files.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index ac08b42..af80ec0 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,3 +1,13 @@
#!/bin/sh
-aclocal && autoheader && automake -a -c && autoconf
+# usage: ./autogen.sh [-f]
+# option "-f" means forcefully create symlinks for missing files
+# (by default: copies are made only if necessary)
+
+if [ x"$1" = x-f ]
+ then shift ; am_opt='--force'
+ else am_opt='--copy'
+fi
+
+aclocal && autoheader && automake -a $am_opt && autoconf
+