diff options
Diffstat (limited to 'get-sources.sh')
-rwxr-xr-x | get-sources.sh | 9 |
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} |