[vlc-devel] [PATCH 2/4] Remove VLC_Changeset, src/misc/revision.c, fixes make

Rémi Denis-Courmont rdenis at simphalempin.com
Sat Feb 14 13:16:09 CET 2009


---
 include/vlc_common.h |    1 -
 src/Makefile.am      |   21 ---------------------
 src/libvlccore.sym   |    1 -
 src/misc/.gitignore  |    1 -
 src/version.c        |    6 ------
 5 files changed, 0 insertions(+), 30 deletions(-)
 delete mode 100644 src/misc/.gitignore

diff --git a/include/vlc_common.h b/include/vlc_common.h
index a231d83..23f27a0 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -855,7 +855,6 @@ VLC_EXPORT( const char *, VLC_CompileHost, ( void ) LIBVLC_USED );
 VLC_EXPORT( const char *, VLC_CompileDomain, ( void ) LIBVLC_USED );
 VLC_EXPORT( const char *, VLC_Compiler, ( void ) LIBVLC_USED );
 VLC_EXPORT( const char *, VLC_Error, ( int ) LIBVLC_USED );
-VLC_EXPORT( const char *, VLC_Changeset, ( void ) LIBVLC_USED );
 
 /*****************************************************************************
  * Additional vlc stuff
diff --git a/src/Makefile.am b/src/Makefile.am
index 00a32c6..740f357 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -172,7 +172,6 @@ AM_LDFLAGS += -avoid-version
 endif
 
 libvlccore_la_SOURCES = $(SOURCES_libvlc)
-nodist_libvlccore_la_SOURCES = misc/revision.c
 libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
 	-DMODULE_STRING=\"main\" \
 	-DLOCALEDIR=\"$(localedir)\" \
@@ -465,26 +464,6 @@ SOURCES_libvlc_control = \
 	control/media_discoverer.c
 
 ###############################################################################
-# Stamp rules
-###############################################################################
-
-misc/revision.c.tmp:
-	rm -f -- $@
-	echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@
-	REVISION="$$(cd "$(top_srcdir)"; git describe 2>/dev/null || echo "$(VERSION)")"; \
-	echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@
-	diff $@ misc/revision.c >/dev/null 2>&1 || \
-		cat misc/revision.c.tmp > misc/revision.c
-
-misc/revision.c:
-	$(MAKE) misc/revision.c.tmp
-	cat misc/revision.c.tmp > misc/revision.c
-
-BUILT_SOURCES += misc/revision.c.tmp misc/revision.c
-
-.PHONY: misc/revision.c.tmp
-
-###############################################################################
 # Unit/regression test
 ###############################################################################
 
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index b022e75..ee2028a 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -430,7 +430,6 @@ vlc_b64_decode_binary_to_buffer
 vlc_b64_encode
 vlc_b64_encode_binary
 vlc_cancel
-VLC_Changeset
 vlc_clone
 VLC_CompileBy
 VLC_CompileDomain
diff --git a/src/misc/.gitignore b/src/misc/.gitignore
deleted file mode 100644
index e9cba81..0000000
--- a/src/misc/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-revision.c
diff --git a/src/version.c b/src/version.c
index 3bac434..e2e7e25 100644
--- a/src/version.c
+++ b/src/version.c
@@ -54,9 +54,3 @@ DECLARE_VLC_VERSION( CompileBy, COMPILE_BY );
 DECLARE_VLC_VERSION( CompileHost, COMPILE_HOST );
 DECLARE_VLC_VERSION( CompileDomain, COMPILE_DOMAIN );
 DECLARE_VLC_VERSION( Compiler, COMPILER );
-
-extern const char psz_vlc_changeset[];
-const char* VLC_Changeset( void )
-{
-    return psz_vlc_changeset;
-}
-- 
1.5.6.5




More information about the vlc-devel mailing list