File: upcb

package info (click to toggle)
pcb-rnd 3.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 32,976 kB
  • sloc: ansic: 213,300; yacc: 6,241; sh: 4,698; awk: 2,950; makefile: 2,229; lex: 1,166; python: 519; xml: 261; lisp: 154; tcl: 67; perl: 34; javascript: 6; ruby: 5
file content (29 lines) | stat: -rwxr-xr-x 588 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

# GNU mc VFS glue for printed circuit boards using pcb-rnd
# This file is placed in the public domain by the author,
# Tibor 'Igor2' Palinkas, in 2019.
#
# Install this file in /usr/lib/mc/extfs.d
#
# Then add this in mc.ext (e.g. in /etc/mc/mc.ext):
#
# # PCB files
# shell/.pcb
#  Open=%cd %p/upcb://
#

PCBRND="pcb-rnd -x vfs_mc"

cmd=$1
shift 1
case "$cmd" in
	list)    $PCBRND --cmd list "$1" ;;
	copyout) $PCBRND --cmd copyout "$1" --qpath "$2" > $3;;
	copyin)  $PCBRND --cmd copyin  "$1" --qpath "$2" < $3;;
#	rm)      
#	rmdir)   
#	mkdir)   
	*) exit 1 ;;
esac
exit 0