added snarf as a tar ending. these scripts need to have some commonalities extracted,
authorChris Koeritz <fred@gruntose.com>
Tue, 28 May 2013 12:41:11 +0000 (08:41 -0400)
committerChris Koeritz <fred@gruntose.com>
Tue, 28 May 2013 12:41:11 +0000 (08:41 -0400)
like the extensions for tars and zips.

scripts/archival/listarch.sh
scripts/archival/search_arch.sh
scripts/archival/unpack.sh

index c21d5d689a07669bfafc6c6bf15b2a7bbaae3e42..972295c01bb06d57310780333afd191eb8905c52 100644 (file)
@@ -54,6 +54,7 @@ if [[ $archive_file =~ .*\.tar$ \
     || $archive_file =~ .*\.oar$ \
     || $archive_file =~ .*\.tgz$ \
     || $archive_file =~ .*\.ova$ \
+    || $archive_file =~ .*\.snarf$ \
     ]]; then
   tar -tf $archive_file | $PAGER
 elif [[ $archive_file =~ .*\.zip$ \
index 523ccab72f076f21445427b160f4683d8dde8ff7..7b2761ff686ae10aef4ae19e740ae2c49d0a3001 100644 (file)
@@ -28,7 +28,7 @@ TMPFILE="$(mktemp "$TMP/jarfinding.XXXXXX")"
 
 # locate all the archive files under the path.
 find "$dir" -iname "*.jar" -o -iname "*.zip" -o -iname "*.tar" \
-  -o -iname "*.iar" -o -iname "*.oar" -iname "*.bz2" \
+  -o -iname "*.iar" -o -iname "*.oar" -o -iname "*.bz2" -o -iname "*.snarf" \
   >"$TMPFILE"
 
 while read line; do
index 965928c7a065f26a364c080a5f3d8fa4d0eb64b3..6670f489f8b408da83baa6983006bd1cb0a398d6 100644 (file)
@@ -59,6 +59,7 @@ if [[ $archive_file =~ .*\.tar$ \
     || $archive_file =~ .*\.oar$ \
     || $archive_file =~ .*\.tgz$ \
     || $archive_file =~ .*\.ova$ \
+    || $archive_file =~ .*\.snarf$ \
     ]]; then
   tar -xf $archive_file &>/dev/null
 elif [[ $archive_file =~ .*\.zip$ \