-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnocem
More file actions
executable file
·40 lines (28 loc) · 810 Bytes
/
nocem
File metadata and controls
executable file
·40 lines (28 loc) · 810 Bytes
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
30
31
32
33
34
35
36
37
38
#!/usr/bin/perl -s
# -*-perl-*-
# This is the chain that calls the three modules in sync.
# Thus, this is what you would modify in order to swap in your own
# modules.
$home=$ENV{"HOME"};
$ncmdir="/home/pace/.ncm"; # $home/.ncm
$head="$ncmdir/ncm.head";
require "$head"; # Configuration information
$override && ($orstr="-override");
$reset && exec ("$ncmdir/reset-state $orstr");
$args1="";
$args2="";
$args3="";
$allargs="";
$verbstr=($verb || $defverb)?"-verb":"";
$quiet && ($verbstr="");
$quickstr=(($quick) || ($defquick))?"-quick ":"";
$slow && ($quickstr="");
$allargs.=$verbstr." ";
$stage1="$ncmdir/ncm.s1";
$stage2="$ncmdir/ncm.s2";
$stage3="$ncmdir/ncm.s3 ".$quickstr;
$exstr="$stage1 $allargs $args1 |
$stage2 $allargs $args2 |
$stage3 $allargs $args3 ";
$|=1;
print `$exstr`;