savannah-hackers-public
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers-public] [PATCH 6/6] gsv-eval-remote.sh (process_packag


From: Bruno Félix Rezende Ribeiro
Subject: [Savannah-hackers-public] [PATCH 6/6] gsv-eval-remote.sh (process_package): add method for single plain-text file packages.
Date: Wed, 23 Sep 2015 04:02:44 -0300

---
 gsv-eval-remote.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gsv-eval-remote.sh b/gsv-eval-remote.sh
index 02c02d9..1a9b105 100755
--- a/gsv-eval-remote.sh
+++ b/gsv-eval-remote.sh
@@ -150,6 +150,13 @@ process_package() {
             cd "$DIRECTORY"
             pwd
             ;;
+        *text/* | *+xml* | */xml*)
+            DIRECTORY=$(mktemp -d text.XXXXXX) \
+                || die "failed to create temporary directory"
+            cp "$1" "$DIRECTORY" || die "failed to copy '$1' to '$DIRECTORY'"
+            cd "$DIRECTORY"
+            pwd
+            ;;
         *)
             die "there is no known method to process '$TYPE'"
             ;;
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]