Skip to content

Commit

Permalink
remove repository url from update_version #3
Browse files Browse the repository at this point in the history
  • Loading branch information
matyaskopp committed May 29, 2024
1 parent 93ddd87 commit 1e9d524
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion admin/create_installer_with_strawberry_perl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion admin/create_tred_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion admin/update-dist-dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" && \
Expand Down
6 changes: 3 additions & 3 deletions tred_refactored/devel/update_version.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1e9d524

Please sign in to comment.