File: rgview

package info (click to toggle)
rosegarden 1%3A25.12-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,888 kB
  • sloc: cpp: 209,189; xml: 6,580; sh: 1,608; perl: 755; python: 416; ansic: 324; lisp: 139; ruby: 33; makefile: 20
file content (19 lines) | stat: -rwxr-xr-x 324 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
#
# rgview - handy dandy RG file viewer
#
# D. Michael McIntyre <dmmcintyr@users.sourceforge.net>
#
#

if (file $1|grep gzip); then
    echo Uncompressing $1 for viewing...
    gunzip -c $1 > /tmp/$1.xml
    /usr/bin/view /tmp/$1.xml
    rm -f /tmp/$1.xml > /dev/null
else
    /usr/bin/less $1
fi
exit 0

exit 0