Author: lmuelle
Date: 2006-11-15 10:53:45 +0000 (Wed, 15 Nov 2006)
New Revision: 681

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=lorikeet&rev=681

Log:
Add tarball rule.
Add VERSION file.

Added:
   trunk/mod_auth_ntlm_winbind/VERSION
Modified:
   trunk/mod_auth_ntlm_winbind/Makefile.in


Changeset:
Modified: trunk/mod_auth_ntlm_winbind/Makefile.in
===================================================================
--- trunk/mod_auth_ntlm_winbind/Makefile.in     2006-11-14 23:28:53 UTC (rev 
680)
+++ trunk/mod_auth_ntlm_winbind/Makefile.in     2006-11-15 10:53:45 UTC (rev 
681)
@@ -18,6 +18,44 @@
 install: $(SODIR)mod_auth_ntlm_winbind.so
        $(APXS) $(APXS_FLAGS) -S LIBEXECDIR=$(APXSLIBDIR) -n auth_ntlm_winbind 
-i $(SODIR)mod_auth_ntlm_winbind.so
 
+tarball: distclean
+       @case "$${RELEASE}" in \
+               1|y|Y|yes|Yes) ;; \
+               *) \
+                       TMPDIR=$$( mktemp -d __SVN_VERSION.XXXXXXXX); \
+                       if test $$? -ne 0; then \
+                               echo "Can't create temp dir to store svn 
version. "; \
+                               exit 1; \
+                       fi; \
+                       mv VERSION "$${TMPDIR}/"; \
+                       cp -p "$${TMPDIR}/VERSION" .; \
+                       echo "MOD_AUTH_NTLM_WINBIND_SVNVERSION=\"$$( 
svnversion)\"" \
+                               >>VERSION; \
+                       ;; \
+       esac; \
+       . VERSION; \
+       
TARBALL_VERSION="$${MOD_AUTH_NTLM_WINBIND_VERSION}$${MOD_AUTH_NTLM_WINBIND_SVNVERSION:+.$${MOD_AUTH_NTLM_WINBIND_SVNVERSION}}";
 \
+       TARBALL_BASENAME="mod_auth_ntlm_winbind-$${TARBALL_VERSION}"; \
+       echo "Creating ../$${TARBALL_BASENAME}.tar.bz2 "; \
+       pushd .. >/dev/null; \
+       if ! test -e "$${TARBALL_BASENAME}"; then \
+               TARBALL_SYMLINK_CREATED="yes"; \
+               ln -s mod_auth_ntlm_winbind "$${TARBALL_BASENAME}"; \
+       fi; \
+       tar cfhj "$${TARBALL_BASENAME}.tar.bz2" \
+               --exclude=__SVN_VERSION.???????? \
+               --exclude=.*.swp \
+               --exclude=.svn \
+               "$${TARBALL_BASENAME}"; \
+       test "$${TARBALL_SYMLINK_CREATED}" = "yes" && \
+               rm "$${TARBALL_BASENAME}"; \
+       popd >/dev/null; \
+       if test -d "$$TMPDIR"; then \
+               test -f "$${TMPDIR}/VERSION" && \
+                       mv "$${TMPDIR}/VERSION" .; \
+               rmdir "$${TMPDIR}"; \
+       fi
+
 # Clean targets
 clean:
        rm -f *~ $(MOD_NTLM_WINBIND_SRC:.c=.{la,lo,o,slo})

Added: trunk/mod_auth_ntlm_winbind/VERSION
===================================================================
--- trunk/mod_auth_ntlm_winbind/VERSION 2006-11-14 23:28:53 UTC (rev 680)
+++ trunk/mod_auth_ntlm_winbind/VERSION 2006-11-15 10:53:45 UTC (rev 681)
@@ -0,0 +1 @@
+MOD_AUTH_NTLM_WINBIND_VERSION="0.0.0"

Reply via email to