Flat commit of all changes from package-management branch in svn

This commit is contained in:
Oliver Tappe
2011-07-17 16:54:06 +02:00
committed by Ingo Weinhold
parent b353a9a30a
commit 3dfd9cb95c
134 changed files with 1284 additions and 1003 deletions
+6 -2
View File
@@ -163,19 +163,23 @@ extractFile()
targetExtractedDir=$2
extractedSubDir=$3
echo "Extracting $archiveFile ..."
extractDir=$tmpDir/extract
$rmAttrs -rf "$extractDir"
mkdir -p "$extractDir"
case "$archiveFile" in
*.zip)
echo "Extracting $archiveFile ..."
$unzip -q -d "$extractDir" "$archiveFile"
;;
*.tgz|*.tar.gz)
echo "Extracting $archiveFile ..."
tar -C "$extractDir" -xf "$archiveFile"
;;
*.hpkg)
echo "Adding package $archiveFile ..."
cp "$archiveFile" "$extractDir"
;;
*)
echo "Unhandled archive extension in build_haiku_image extractFile()"
exit 1