summaryrefslogtreecommitdiffstats
path: root/get-sources.sh
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2014-07-25 11:01:13 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2014-07-25 11:01:13 -0500
commit95b58d4b9bc334d09e849ddfc406eb7f59ecea17 (patch)
tree9d9f9175fed9dda66ac160ef406b46c3d4c3616d /get-sources.sh
parented55efd0ce9f47784a781941000a0c746ff8fe5b (diff)
downloadcygwin-95b58d4b9bc334d09e849ddfc406eb7f59ecea17.tar.gz
cygwin-95b58d4b9bc334d09e849ddfc406eb7f59ecea17.tar.xz
cygwin-95b58d4b9bc334d09e849ddfc406eb7f59ecea17.zip
cygwin 1.7.31
Diffstat (limited to 'get-sources.sh')
-rwxr-xr-xget-sources.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/get-sources.sh b/get-sources.sh
index 561b6e3..0349bf0 100755
--- a/get-sources.sh
+++ b/get-sources.sh
@@ -1,6 +1,9 @@
-pv=$(grep '^Version:' cygwin.spec | sed -e 's/.* //')
-tarsrc=cygwin-$pv-2-src.tar.xz
+v=$(grep '^Version:' cygwin.spec | sed -e 's/.* //')
+r=3
+tarsrc=cygwin-$v-$r-src.tar.xz
url=ftp://sourceware.org/pub/cygwin/x86/release/cygwin/${tarsrc}
curl --fail --remote-time --location --output ${tarsrc} $url
-tar axf ${tarsrc} winsup-$pv.tar.bz2 && rm ${tarsrc}
+tar axf ${tarsrc} cygwin-$v-$r.src/winsup-$v.tar.bz2 \
+ && mv cygwin-$v-$r.src/winsup-$v.tar.bz2 . \
+ && rmdir cygwin-$v-$r.src && rm -f ${tarsrc}