Commit c262bd27 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove obsolete stuff

parent eae01d1b
......@@ -1203,6 +1203,7 @@ VLC_EXPORT( const char *, VLC_CompileHost, ( void ) );
VLC_EXPORT( const char *, VLC_CompileDomain, ( void ) );
VLC_EXPORT( const char *, VLC_Compiler, ( void ) );
VLC_EXPORT( const char *, VLC_Error, ( int ) );
VLC_EXPORT( const char *, VLC_Changeset, ( void ) );
/*****************************************************************************
* Additional vlc stuff
......@@ -1211,10 +1212,7 @@ VLC_EXPORT( const char *, VLC_Error, ( int ) );
# ifdef HAVE_DIRENT_H
# include <dirent.h> /* for DIR typedef in vlc_symbols.h */
# endif
VLC_EXPORT( const char *, VLC_Changeset, ( void ) );
# include "vlc_symbols.h"
#else
# define VLC_Changeset( ) ("exported")
#endif
#include "vlc_os_specific.h"
#include "vlc_messages.h"
......
......@@ -30,7 +30,6 @@ recognized flags are:
--update-vc7 update Microsoft Visual .NET files
--update-po update translation files
--update-includes generate various include files
--update-version generate src/misc/version.c
--update-glade2 generate and fix Glade 2 code
--update-flexml generate and fix flexml and flex code
--distclean "make distclean" on steroids
......@@ -75,9 +74,6 @@ case "$1" in
--update-includes)
action=includes
;;
--update-version)
action=version
;;
--update-flexml)
action=flexml
;;
......@@ -583,50 +579,6 @@ then
exit 0
fi
##
## Create version file
##
if test "${action}" = "version"
then
if test -z "${srcdir}"; then
srcdir="`sed -ne 's/^srcdir *= *//p' < Makefile`"
fi
if test -z "${builddir}"; then
builddir="`sed -ne 's/^top_builddir *= *//p' < Makefile`"
fi
if test -z "${CC}"; then
CC="`sed -ne 's/^CC *= *//p' < Makefile`"
fi
file="${builddir}/src/misc/version.c"
if which svnversion 2>&1 >/dev/null; then
VLC_CHANGESET=`svnversion $srcdir`
else
VLC_CHANGESET='exported'
fi
rm -f ${file}.tmp
mkdir -p -- "${builddir}/src/misc"
cat > ${file}.tmp << EOF
/* DO NOT EDIT THIS FILE - IT IS REGENERATED AT EVERY COMPILE -
* IT GIVES BETTER TRACKING OF VLC STABLE AND DEVELOPMENT VERSIONS
* WHETHER THEY ARE BUILT BY OTHERS OR DURING DEVELOPMENT OR FOR THE
* OFFICIAL VLC STABLE RELEASES.
*/
const char psz_vlc_changeset[] = "${VLC_CHANGESET}";
EOF
if diff >/dev/null 2>&1 ${file} ${file}.tmp
then
rm -f ${file}.tmp
else
echo "creating new ${file}"
mv -f ${file}.tmp ${file}
fi
exit 0
fi
##
## Fix glade2-generated files
##
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment