[visualvm] 01/03: Add a file in the empty directories to preserve them in Git
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue May 6 12:24:40 UTC 2014
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository visualvm.
commit 5aaabdff1ad877c8986e781c3ea3cf77e1d6b0f8
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue May 6 12:44:04 2014 +0200
Add a file in the empty directories to preserve them in Git
---
debian/orig-tar.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 304422a..817b3e4 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -7,16 +7,22 @@ TAR=../visualvm_$VERSION.orig.tar.xz
rm -Rf java.net $3 $DIR
+# Download the tarballs
wget --no-verbose --recursive --level 1 \
--accept 'netbeans-profiler-visualvm_release*' \
--accept 'visualvm_*-src.tar.gz' \
https://java.net/downloads/visualvm/release$TAG/
+# Extract the source files
mkdir $DIR
mkdir $DIR/netbeans
tar -xf java.net/downloads/visualvm/release$TAG/visualvm_*-src.tar.gz -C $DIR
tar -xf java.net/downloads/visualvm/release$TAG/netbeans-profiler-visualvm_release*.tar.gz -C $DIR/netbeans
+# Add a file in the empty directories to preserve them in Git (the build fails otherwise)
+for dir in $(find . -type d -regex ``./[^.].*'' -empty); do touch $dir"/.gitignore"; done;
+
+# Build the upstream tarball
XZ_OPT=--best tar -cJf $TAR --exclude '*.exe' $DIR
rm -Rf $DIR java.net
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/visualvm.git
More information about the pkg-java-commits
mailing list