Skip to content

Commit

Permalink
improve shell
Browse files Browse the repository at this point in the history
  • Loading branch information
coderzc committed Dec 8, 2022
1 parent 4fb79be commit a261e8c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ apache-release.sh export-ignore

# ignored directory
.github/ export-ignore
assembly/ export-ignore
computer-dist/src/assembly/ export-ignore
computer-k8s-operator/crd-generate/bin/ export-ignore
logs/ export-ignore
2 changes: 1 addition & 1 deletion computer-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<copy file="${top.level.dir}/computer-k8s-operator/target/hugegraph-computer-operator-${revision}.jar"
tofile="${top.level.dir}/${final.name}/k8s-operator/hugegraph-computer-operator.jar"
overwrite="true"/>
<tar destfile="${top.level.dir}/${final.name}.tar.gz"
<tar destfile="${top.level.dir}/target/${final.name}.tar.gz"
basedir="${top.level.dir}"
includes="${final.name}/**"
compression="gzip"/>
Expand Down
7 changes: 5 additions & 2 deletions computer-dist/scripts/apache-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ echo "In the work dir: $(pwd)"
rm -rfv dist && mkdir -p dist/apache-${REPO}

# step1: package the source code
cd ../../
git archive --format=tar.gz \
--output="dist/apache-${REPO}/apache-${REPO}-incubating-${RELEASE_VERSION}-src.tar.gz" \
--output="computer-dist/scripts/dist/apache-${REPO}/apache-${REPO}-incubating-${RELEASE_VERSION}-src.tar.gz" \
--prefix="apache-${REPO}-incubating-${RELEASE_VERSION}-src/" "${GIT_BRANCH}" || exit

cd -
# step2: copy the binary file (Optional)
# Note: it's optional for project to generate binary package (skip this step if not need)
cp -v ../../target/apache-${REPO}-incubating-"${RELEASE_VERSION}".tar.gz \
Expand Down Expand Up @@ -81,7 +83,8 @@ cd ${SVN_DIR} || exit

##### 4.2 check status first
svn status
svn add "${RELEASE_VERSION}"
svn add ${RELEASE_VERSION}
svn add ${RELEASE_VERSION}/apache-${REPO}-*
# check status again
svn status

Expand Down

0 comments on commit a261e8c

Please sign in to comment.