X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=toolbox;h=01945e4f69a7efc91cd2103188730de255057494;hb=fd84e3b73a8fd3461dc11321320922f43ff2a6de;hp=088181c71bf9715c56775b83cac36261f1948d4c;hpb=2eeecb47c846664e466677e9a592091e841290e4;p=vlc diff --git a/toolbox b/toolbox index 088181c71b..01945e4f69 100755 --- a/toolbox +++ b/toolbox @@ -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 ## @@ -679,7 +631,6 @@ then rm -f config.h config.log config.status rm -f vlc vlc-config Makefile Modules.am rm -Rf autom4te.cache - rm -f mozilla/vlcintf.h mozilla/vlcintf.xpt echo "\`toolbox --distclean\' is known to be broken." echo "Don't complain if it does not work, or better yet, don't use it." echo "You were warned."