]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
strip the single quotes around $VERSION 152/head
authorRamakrishnan Muthukrishnan <ram@leastauthority.com>
Sat, 11 Apr 2015 09:05:18 +0000 (14:35 +0530)
committerRamakrishnan Muthukrishnan <ram@leastauthority.com>
Sat, 11 Apr 2015 09:05:18 +0000 (14:35 +0530)
Without stripping the single quotes, the generated pagkage filename
also has the undesired single quotes around the version string.
(eg: tahoe-lafs-'1.10.0.post309'-osx.pkg).

misc/build_helpers/build-osx-pkg.sh

index fe89cf691a53e7b96a0bd56d1247d7a62c41b574..52f01098dcfbe69a24d84459ed1f7097a1e75d28 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 APPNAME=$1
-VERSION=`sh -c "cat src/allmydata/_version.py | grep verstr | head -n 1 | cut -d' ' -f 3"`
+VERSION=`sh -c "cat src/allmydata/_version.py | grep verstr | head -n 1 | cut -d' ' -f 3" | sed "s/'//g"`
 PWD=`pwd`
 
 # The editing of allmydata-tahoe.egg-link and easy-install.pth files