From 1e9d524876b2f58a9f3354b70d817bf77373e94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Kopp?= Date: Wed, 29 May 2024 16:37:12 +0200 Subject: [PATCH] remove repository url from update_version #3 --- admin/create_installer_with_strawberry_perl.sh | 2 +- admin/create_tred_packages.sh | 2 +- admin/update-dist-dir.sh | 2 +- tred_refactored/devel/update_version.pl | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/create_installer_with_strawberry_perl.sh b/admin/create_installer_with_strawberry_perl.sh index 561a60aca..c106bf7b4 100755 --- a/admin/create_installer_with_strawberry_perl.sh +++ b/admin/create_installer_with_strawberry_perl.sh @@ -13,7 +13,7 @@ function get_strawberry() { } if [ -z "$VER" ]; then - VER=`$DIST_DIR/tred/devel/update_version.pl -n ${TRED_SVN_REPO}` + VER=`$DIST_DIR/tred/devel/update_version.pl -n` fi diff --git a/admin/create_tred_packages.sh b/admin/create_tred_packages.sh index e6701121f..c9c2f8d9e 100755 --- a/admin/create_tred_packages.sh +++ b/admin/create_tred_packages.sh @@ -22,7 +22,7 @@ WWW="$3" SFX=$(dirname $0)/7zExtra/7zS.sfx if [ -z "$VER" ]; then - VER=`$DIST_DIR/tred/devel/update_version.pl -n ${TRED_SVN_REPO}` + VER=`$DIST_DIR/tred/devel/update_version.pl -n` fi cd "$DIST_DIR" diff --git a/admin/update-dist-dir.sh b/admin/update-dist-dir.sh index 47db319c1..2c8328a94 100755 --- a/admin/update-dist-dir.sh +++ b/admin/update-dist-dir.sh @@ -18,7 +18,7 @@ git -C ${TRED_SRC_DIR} archive --output ${TRED_DIST_DIR}.new.zip HEAD >> $LOG & unzip ${TRED_DIST_DIR}.new.zip -d ${TRED_DIST_DIR}.new >> $LOG && \ rm ${TRED_DIST_DIR}.new.zip && \ # updates TrEd version in dist/tred.new/tredlib/TrEd/Version.pm according to svn version to 3.#git_date# -${TRED_DIST_DIR}.new/devel/update_version.pl ${TRED_SVN_REPO} && \ +${TRED_DIST_DIR}.new/devel/update_version.pl && \ echo "WARN: Skipping updating extensions" && \ #echo "Updating extensions" && \ diff --git a/tred_refactored/devel/update_version.pl b/tred_refactored/devel/update_version.pl index 94244f2ac..51ec16a78 100755 --- a/tred_refactored/devel/update_version.pl +++ b/tred_refactored/devel/update_version.pl @@ -35,7 +35,7 @@ die "Did not find $version_file!" if !-f $version_file; -my $git_date = `git log -1 --date=format:"\%Y\%m\%d" --format="%ad"`; +my $git_date = `git log -1 --date=format:"%Y%m%d" --format="%ad"`; chomp $git_date; my $VER = '3.' . $git_date; @@ -66,7 +66,7 @@ =head1 NAME =head1 SYNOPSIS -update_version.pl [--debug|-D] [--quiet|-q] [--no-update|-n] [REPOSITORY_URL] +update_version.pl [--debug|-D] [--quiet|-q] [--no-update|-n] or update_version.pl -u for usage update_version.pl -h for help @@ -75,7 +75,7 @@ =head1 SYNOPSIS =head1 DESCRIPTION This script updates the version number in the module TrEd::Version based on -the current SVN revision number of TrEd. +the current GIT revision date of TrEd. =over 5