[Git][java-team/zip4j][master] Fixing debian/repack.sh.
Andrius Merkys
gitlab at salsa.debian.org
Thu May 23 06:56:19 BST 2019
Andrius Merkys pushed to branch master at Debian Java Maintainers / zip4j
Commits:
3734b412 by Andrius Merkys at 2019-05-23T05:56:09Z
Fixing debian/repack.sh.
- - - - -
1 changed file:
- debian/repack.sh
Changes:
=====================================
debian/repack.sh
=====================================
@@ -1,20 +1,33 @@
#!/bin/sh
-JAR="$1"
-PKG_NAME=$(basename ${JAR} .jar)
-REPKG_NAME=$(basename ${PKG_NAME} -sources | sed 's/-/_/g')+ds.orig.tar.gz
+usage() {
+ echo "Usage: repack.sh --upstream-version <ver>"
+ exit 1
+}
+
+if [ "$#" != "2" ]; then
+ usage
+fi
+if [ "$1" != "--upstream-version" ]; then
+ usage
+fi
+
+UPSTREAM_VERSION="$2"
+TARBALL=../zip4j_${UPSTREAM_VERSION}.orig.tar.xz
+
+REPKG_NAME=zip4j_${UPSTREAM_VERSION}+ds.orig.tar.xz
TMPDIR=$(mktemp -d)
-cp ${JAR} ${TMPDIR}
+cp ${TARBALL} ${TMPDIR}
(
cd ${TMPDIR}
- jar xf $(basename ${JAR})
+ tar -xvf $(basename ${TARBALL})
mkdir --parents zip4j/src/main/java
mv net zip4j/src/main/java
- tar -cvzf ${REPKG_NAME} zip4j
+ tar -cvJf ${REPKG_NAME} zip4j
)
-cp ${TMPDIR}/${REPKG_NAME} .
+cp ${TMPDIR}/${REPKG_NAME} ..
rm -rf ${TMPDIR}
View it on GitLab: https://salsa.debian.org/java-team/zip4j/commit/3734b4124ee88846d70b8829242a4a59170e90c6
--
View it on GitLab: https://salsa.debian.org/java-team/zip4j/commit/3734b4124ee88846d70b8829242a4a59170e90c6
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20190523/34248519/attachment.html>
More information about the pkg-java-commits
mailing list