]> mj.ucw.cz Git - bex.git/commitdiff
Configuration files moved from directory "BEX" to "cf"
authorMartin Mares <mj@ucw.cz>
Tue, 12 Feb 2013 09:43:46 +0000 (10:43 +0100)
committerMartin Mares <mj@ucw.cz>
Tue, 12 Feb 2013 09:43:46 +0000 (10:43 +0100)
Too many things were called "BEX".

BEX/config [deleted file]
BEX/epilog [deleted file]
BEX/prolog [deleted file]
bex
cf/config [new file with mode: 0644]
cf/epilog [new file with mode: 0644]
cf/prolog [new file with mode: 0644]
lib/perl/BEX/Config.pm

diff --git a/BEX/config b/BEX/config
deleted file mode 100644 (file)
index 09c1b1b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# Configuration of the Batch EXecutor
-# This is a Perl script, which can set anything in the BEX::Config package
-
-package BEX::Config;
-
-%machines = (
-       'albireo' => { 'Host' => 'albireo.burrow.ucw.cz' },
-       'localhost' => {},
-       'home' => ['albireo', 'localhost'],
-);
-
-42;
diff --git a/BEX/epilog b/BEX/epilog
deleted file mode 100644 (file)
index bc2da7a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-# BEX epilog
diff --git a/BEX/prolog b/BEX/prolog
deleted file mode 100644 (file)
index 3350a91..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-# BEX prolog
-set -e
diff --git a/bex b/bex
index f4db56f0fe90b25751ece0ef953eb50cfa3f3caa..76c2c3cda50f40882beb97f766eb42582489d7b4 100755 (executable)
--- a/bex
+++ b/bex
@@ -44,8 +44,8 @@ Getopt::Long::Configure('default');
 if (!-d $bex_home) {
        die "BEX home directory $bex_home does not exist.\n";
 }
-if (!-d "$bex_home/BEX") {
-       die "BEX home directory $bex_home does not contain the BEX subdirectory.\n";
+if (!-d "$bex_home/cf") {
+       die "BEX home directory $bex_home does not contain the cf subdirectory.\n";
 }
 if (!-f "$bex_lib/perl/BEX.pm") {
        die "BEX library directory $bex_lib misconfigured.\n";
diff --git a/cf/config b/cf/config
new file mode 100644 (file)
index 0000000..09c1b1b
--- /dev/null
+++ b/cf/config
@@ -0,0 +1,12 @@
+# Configuration of the Batch EXecutor
+# This is a Perl script, which can set anything in the BEX::Config package
+
+package BEX::Config;
+
+%machines = (
+       'albireo' => { 'Host' => 'albireo.burrow.ucw.cz' },
+       'localhost' => {},
+       'home' => ['albireo', 'localhost'],
+);
+
+42;
diff --git a/cf/epilog b/cf/epilog
new file mode 100644 (file)
index 0000000..bc2da7a
--- /dev/null
+++ b/cf/epilog
@@ -0,0 +1 @@
+# BEX epilog
diff --git a/cf/prolog b/cf/prolog
new file mode 100644 (file)
index 0000000..3350a91
--- /dev/null
+++ b/cf/prolog
@@ -0,0 +1,3 @@
+#!/bin/sh
+# BEX prolog
+set -e
index 739b2ebbd5431639afa66c9be1f2e97b0704dfb8..8a36d45690317c9fd464c8c94d958eb4661c8c0b 100644 (file)
@@ -22,7 +22,7 @@ our $lib = $ENV{"BEX_LIB"} // "lib";
 our $home = $ENV{"BEX_HOME"} // ".";
 
 # Configuration directory
-our $cf_dir = $home . "/BEX";
+our $cf_dir = $home . "/cf";
 
 # A file whose contents should be prepended before the job. Should start with the "#!" line.
 our $job_prolog = $cf_dir . '/prolog';