forked from openSUSE/obs-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make debtransform support packages with .tar.bz2 and .zip tarballs
- Loading branch information
1 parent
e907216
commit 5857598
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#! /bin/bash | ||
|
||
if test $# -ne 2; then | ||
exit 1 | ||
fi | ||
|
||
bz="$1" | ||
tar="$2" | ||
|
||
bzcat "$bz" | gzip -f - >"$tar" || exit 1 | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#! /bin/bash | ||
|
||
if test $# -ne 2; then | ||
exit 1 | ||
fi | ||
|
||
zip="$1" | ||
tar="$2" | ||
|
||
tmp=$(mktemp -d) | ||
unzip -q -d "$tmp" -- "$zip" || exit 1 | ||
( cd "$tmp" && tar czO * ) >"$tar" || exit 1 | ||
rm -r "$tmp" | ||
exit 0 |