Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
2e56e4fa
Commit
2e56e4fa
authored
6 years ago
by
Brian Carrier
Browse files
Options
Downloads
Patches
Plain Diff
updated build scripts to update Java version
parent
777f36e0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bindings/java/build.xml
+1
-0
1 addition, 0 deletions
bindings/java/build.xml
release/release-unix.pl
+35
-0
35 additions, 0 deletions
release/release-unix.pl
with
36 additions
and
0 deletions
bindings/java/build.xml
+
1
−
0
View file @
2e56e4fa
...
...
@@ -10,6 +10,7 @@
</condition>
<import
file=
"build-${os.family}.xml"
/>
<!-- Careful changing this because release-windows.pl updates it by pattern -->
<property
name=
"VERSION"
value=
"4.6.1"
/>
<!-- set global properties for this build -->
...
...
This diff is collapsed.
Click to expand it.
release/release-unix.pl
+
35
−
0
View file @
2e56e4fa
...
...
@@ -381,6 +381,40 @@ sub update_libver {
rename
(
$OFILE
,
$IFILE
)
or
die
"
Error renaming
$OFILE
";
}
# update the version in the Java ant build.xml file
sub
update_buildxml
{
print
"
Updating the version in Java build.xml file
\n
";
my
$IFILE
=
"
bindings/java/build.xml
";
my
$OFILE
=
"
bindings/java/build.xml2
";
open
(
CONF_IN
,
"
<
${IFILE}
")
or
die
"
Cannot open
$IFILE
";
open
(
CONF_OUT
,
"
>
${OFILE}
")
or
die
"
Cannot open
$OFILE
";
my
$found
=
0
;
while
(
<
CONF_IN
>
)
{
if
(
/name=\"VERSION\"/
)
{
print
CONF_OUT
"
<property name=
\"
VERSION
\"
value=
\"
${VER}
\"
/>
\n
";
$found
++
;
}
else
{
print
CONF_OUT
$_
;
}
}
close
(
CONF_IN
);
close
(
CONF_OUT
);
if
(
$found
!=
1
)
{
die
"
Error: Found
$found
(instead of 1) occurrences of Version: in Java Build file
";
}
unlink
(
$IFILE
)
or
die
"
Error deleting
$IFILE
";
rename
(
$OFILE
,
$IFILE
)
or
die
"
Error renaming
$OFILE
";
}
# Update the autotools / autobuild files in current source directory
sub
bootstrap
()
{
...
...
@@ -576,6 +610,7 @@ ()
update_hver
();
update_libver
();
update_pkgver
();
update_buildxml
();
bootstrap
();
checkin_vers
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment