]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Hint about not running autogen.sh when building from release archive
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 11 May 2019 15:24:11 +0000 (17:24 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 18 Jul 2019 20:05:49 +0000 (22:05 +0200)
Related to #418.

autogen.sh

index eb3d9ba12d50fd764e50a61c1d90fa5cb87adc17..00c9f52c85e44d129fc01eb336b6ccb6f321bde8 100755 (executable)
@@ -2,7 +2,19 @@
 
 set -e
 
-rm -f dev_mode_disabled
+if [ -f dev_mode_disabled ]; then
+    cat <<EOF >&2
+Error: It looks like you are building ccache from a release archive. If so,
+there is no need to run autoconf.sh. See INSTALL.md for further instructions.
+
+If you do want to the enable the development mode, delete the file
+dev_mode_disabled first, but it's probably a better idea to work with the
+proper ccache Git repository directly as described on
+<https://ccache.dev/repo.html>.
+EOF
+    exit 1
+fi
+
 autoheader
 autoconf
 echo "Now run ./configure and make"