build: quote variables in release.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 68a69d9fbf610899aa95457cdd5c38dcfa447c02
Author: Jan Engelhardt <jengelh@xxxxxxxxxx>
Date:   Thu Jul 3 19:23:39 2008 +0200

    build: quote variables in release.sh
    
    Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
---
 release.sh |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/release.sh b/release.sh
index 5635e4c..f77ef25 100644
--- a/release.sh
+++ b/release.sh
@@ -7,14 +7,14 @@ PREV_VERSION=1.4.1
 TMPDIR=/tmp/ipt-release
 IPTDIR="$TMPDIR/iptables-$VERSION"
 
-PATCH=patch-iptables-$PREV_VERSION-$VERSION.bz2
-TARBALL=iptables-$VERSION.tar.bz2
-CHANGELOG=changes-iptables-$PREV_VERSION-$VERSION.txt
+PATCH="patch-iptables-$PREV_VERSION-$VERSION.bz2";
+TARBALL="iptables-$VERSION.tar.bz2";
+CHANGELOG="changes-iptables-$PREV_VERSION-$VERSION.txt";
 
 mkdir -p "$TMPDIR"
-git shortlog v$PREV_VERSION..v$VERSION > "$TMPDIR/$CHANGELOG"
-git diff v$PREV_VERSION..v$VERSION | bzip2 > "$TMPDIR/$PATCH"
-git archive --prefix=iptables-$VERSION/ v$VERSION | tar -xC "$TMPDIR/"
+git shortlog "v$PREV_VERSION..v$VERSION" > "$TMPDIR/$CHANGELOG"
+git diff "v$PREV_VERSION..v$VERSION" | bzip2 > "$TMPDIR/$PATCH"
+git archive --prefix="iptables-$VERSION/" "v$VERSION" | tar -xC "$TMPDIR/"
 
 cd "$IPTDIR" && {
 	sh autogen.sh
@@ -22,9 +22,9 @@ cd "$IPTDIR" && {
 	cd ..
 }
 
-tar -cjf $TARBALL iptables-$VERSION
-gpg -u "Netfilter Core Team" -sb $TARBALL
-md5sum $TARBALL > $TARBALL.md5sum
+tar -cjf "$TARBALL" "iptables-$VERSION";
+gpg -u "Netfilter Core Team" -sb "$TARBALL";
+md5sum "$TARBALL" >"$TARBALL.md5sum";
 
-gpg -u "Netfilter Core Team" -sb $PATCH
-md5sum $PATCH > $PATCH.md5sum
+gpg -u "Netfilter Core Team" -sb "$PATCH";
+md5sum "$PATCH" >"$PATCH.md5sum";

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux