Jelajahi Sumber

* Add fix for 'download source' button from github

Bryan Drewery 16 tahun lalu
induk
melakukan
bb3758adfb
3 mengubah file dengan 33 tambahan dan 0 penghapusan
  1. 1 0
      Makefile.in
  2. 16 0
      autotools/configure.ac
  3. 16 0
      configure

+ 1 - 0
Makefile.in

@@ -117,6 +117,7 @@ distrib: clean
 	  -e 's/^BUILDTS .*/BUILDTS = $(BUILDTS)/' \
 	  -e 's/^VERSION .*/VERSION = $(VERSION)/' \
 	  $(DISTRIB)/Makefile.in > Makefile.in.tmp && mv Makefile.in.tmp $(DISTRIB)/Makefile.in
+	@sed -i -e 's/GIT_REQUIRED=1/GIT_REQUIRED=0/' $(DISTRIB)/configure
 #	@for s in `find $(DISTRIB)/src/ -name '*.h' -or -name '*.c'`; do mangle -rnw $$s > /dev/null 2>&1; done
 
 tar: distrib

+ 16 - 0
autotools/configure.ac

@@ -199,6 +199,22 @@ AH_BOTTOM([/*
 #endif
 ])
 
+[
+GIT_REQUIRED=1
+if [ "$GIT_REQUIRED" = "1" ]; then
+  if ! test -d .git; then
+    echo ""
+    echo ""
+    echo "You have download a GIT version of wraith."
+    echo "Either 'git clone' from a git repository or download a source tarball"
+    echo "Please download a distribution version from http://wraith.botpack.net/wiki/Download"
+    echo ""
+    echo ""
+    exit 1
+  fi
+fi
+]
+
 echo ""
 echo ""
 echo "------------ Configuring BDLIB ------------"

+ 16 - 0
configure

@@ -15086,6 +15086,22 @@ fi
 
 
 
+
+GIT_REQUIRED=1
+if [ "$GIT_REQUIRED" = "1" ]; then
+  if ! test -d .git; then
+    echo ""
+    echo ""
+    echo "You have download a GIT version of wraith."
+    echo "Either 'git clone' from a git repository or download a source tarball"
+    echo "Please download a distribution version from http://wraith.botpack.net/wiki/Download"
+    echo ""
+    echo ""
+    exit 1
+  fi
+fi
+
+
 echo ""
 echo ""
 echo "------------ Configuring BDLIB ------------"