summaryrefslogtreecommitdiff
path: root/packages/deb.sh
diff options
context:
space:
mode:
authorFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-03-11 13:02:27 +0900
committerFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-03-11 13:02:27 +0900
commitd8cb47f77d1c31779f3ff890e1a5748483778d6a (patch)
tree5b4d8b53c6aadcad6628fdc2a097e93eb950d076 /packages/deb.sh
parent78da3bf8fec7efbe046547ae00cdeafdb9a85a6d (diff)
parent5ab077bb8dd09a061497cfd20518b2900376e699 (diff)
downloadglog-d8cb47f77d1c31779f3ff890e1a5748483778d6a.tar.gz
glog-d8cb47f77d1c31779f3ff890e1a5748483778d6a.tar.bz2
glog-d8cb47f77d1c31779f3ff890e1a5748483778d6a.zip
Merge pull request #1 from ukai/release_0.3.4
glog: release 0.3.4
Diffstat (limited to 'packages/deb.sh')
-rwxr-xr-xpackages/deb.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/deb.sh b/packages/deb.sh
index e6f4aca..a1cdf32 100755
--- a/packages/deb.sh
+++ b/packages/deb.sh
@@ -44,16 +44,18 @@ rm -rf tmp
mkdir -p tmp
cd tmp
+package="google-glog_$VERSION"
+
# Debian has very specific requirements about the naming of build
# directories, and tar archives. It also wants to write all generated
# packages to the parent of the source directory. We accommodate these
# requirements by building directly from the tar file.
-ln -s "${topdir}/${archive}.tar.gz" "${LIB}${archive}.orig.tar.gz"
-tar zfx "${LIB}${archive}.orig.tar.gz"
-[ -n "${LIB}" ] && mv "${archive}" "${LIB}${archive}"
-cd "${LIB}${archive}"
+ln -s "${topdir}/${archive}.tar.gz" "${LIB}${package}.orig.tar.gz"
+tar zfx "${LIB}${package}.orig.tar.gz"
+mv "${archive}" "${LIB}${package}"
+cd "${LIB}${package}"
# This is one of those 'specific requirements': where the deb control files live
-ln -s "packages/deb" "debian"
+cp -a "packages/deb" "debian"
# Now, we can call Debian's standard build tool
debuild -uc -us