summaryrefslogtreecommitdiff
path: root/control.sh
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-25 14:10:23 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-11-25 14:55:39 -0800
commit3adcfba70e98d8248f36c69c9c54fa6c11c8683a (patch)
tree3e9dcf8a7578f7cdd54315a0bd6e331c34690eb4 /control.sh
parente95a19724bdbf476044620d78068dc09aa28fff2 (diff)
Set Version: in control based on git describe --tags.
Diffstat (limited to 'control.sh')
-rwxr-xr-xcontrol.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/control.sh b/control.sh
new file mode 100755
index 0000000..537cb66
--- /dev/null
+++ b/control.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+dir=$1
+dir=${dir:=_}
+sed -e "s@^\(Version:\).*@\1 $(./version.sh)@" control
+echo "Installed-Size: $(du -s "${dir}" | cut -f 1)"