summaryrefslogtreecommitdiff
path: root/ptranslate/translators-posix/x-bzip2.sh
blob: 0402784d4be57cd1ac3b0ae99d3505bd91f564f9 (plain)
1
2
3
4
5
6
7
#!/bin/sh
file="$1"
bzip2 -dk "$file"
out="`echo "$file" | sed -r 's/\.(bz2)|(bz)|(tbz2)|(tbz)|(bzip2)$//'`"
if [ "$out" == "$file" ]; then out="$out.out"; fi
echo "$out"