File: upcb

package info (click to toggle)
pcb-rnd 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 35,428 kB
  • sloc: ansic: 249,627; yacc: 5,981; sh: 5,748; makefile: 3,595; awk: 2,704; lex: 1,094; python: 519; lisp: 169; xml: 128; 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