You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2022/11/03 14:40:40 UTC

[incubator-hugegraph-toolchain] branch master updated: chore: fix hugegraph-dist package failed (#354)

This is an automated email from the ASF dual-hosted git repository.

jin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-toolchain.git


The following commit(s) were added to refs/heads/master by this push:
     new 940705b6 chore: fix hugegraph-dist package failed (#354)
940705b6 is described below

commit 940705b6f86c4352a52465b2e8ed0989588ca40b
Author: Simon Cheung <mi...@apache.org>
AuthorDate: Thu Nov 3 22:40:34 2022 +0800

    chore: fix hugegraph-dist package failed (#354)
---
 hugegraph-dist/pom.xml | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/hugegraph-dist/pom.xml b/hugegraph-dist/pom.xml
index 507350a2..116fb715 100644
--- a/hugegraph-dist/pom.xml
+++ b/hugegraph-dist/pom.xml
@@ -30,18 +30,19 @@
                         <configuration>
                             <tasks>
                                 <echo file="${project.basedir}/dist.sh">
-                                    ls ${project.parent.basedir}/hugegraph-hubble/*
-                                    ls ${project.parent.basedir}/hugegraph-loader/*
-                                    ls ${project.parent.basedir}/hugegraph-tools/*
+                                    root_path=$(cd $(dirname $0)/..; pwd)
+                                    cd $root_path
 
-                                    tar -zcvf ${project.parent.basedir}/${final.name}.tar.gz \
-                                    ${project.parent.basedir}/hugegraph-hubble/hugegraph-hubble \
-                                    ${project.parent.basedir}/hugegraph-loader/hugegraph-loader-${project.version} \
-                                    ${project.parent.basedir}/hugegraph-tools/hugegraph-tools-${project.version} || exit 1
+                                    mkdir -p ${final.name}
+                                    mv $root_path/hugegraph-hubble/hugegraph-hubble ${final.name}/hugegraph-hubble-${project.version}
+                                    mv $root_path/hugegraph-loader/hugegraph-loader-${project.version} ${final.name}/hugegraph-loader-${project.version}
+                                    mv $root_path/hugegraph-tools/hugegraph-tools-${project.version} ${final.name}/hugegraph-tools-${project.version}
 
-                                    md5sum ${project.parent.basedir}/${final.name}.tar.gz
+                                    tar -zcvf $root_path/${final.name}.tar.gz ./${final.name} || exit 1
+
+                                    md5sum $root_path/${final.name}.tar.gz
                                     echo -n "hugegraph-toolchain tar.gz available at: "
-                                    echo "${project.parent.basedir}/${final.name}.tar.gz"
+                                    echo "$root_path/${final.name}.tar.gz"
                                     rm -f ${project.basedir}/dist.sh
 
                                 </echo>
@@ -59,7 +60,7 @@
                 <configuration>
                     <filesets>
                         <fileset>
-                            <directory>${project.parent.basedir}</directory>
+                            <directory>${project.basedir}/..</directory>
                             <includes>
                                 <include>${final.name}.tar.gz</include>
                             </includes>