File: fetch

package info (click to toggle)
unicode-idna 16.0.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,572 kB
  • sloc: sh: 14; makefile: 5
file content (19 lines) | stat: -rwxr-xr-x 527 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

if [ $# = 0 ]; then
  version=$(uscan --no-download --dehs | xmlstarlet sel -t -m "//upstream-version" -v . -n)
else
  version=$1
fi

curdir=$(pwd)
tmpdir=$(mktemp -d)
mkdir -p $tmpdir/unicode-idna-$version

cd $tmpdir/unicode-idna-$version
wget --recursive --no-host-directories --no-parent --cut-dirs 3 -A "*.txt" -R "robots.txt" https://unicode.org/Public/idna/$version/

cd $tmpdir
tar cJf unicode-idna_$version.orig.tar.xz unicode-idna-$version
mv unicode-idna_$version.orig.tar.xz $curdir/..
rm -rf $tmpdir