summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-02-27 15:58:12 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-02-27 15:58:12 +0100
commita307e0474e78c51590aeac95dbc5587a87ef6501 (patch)
treec5c7ca86b0b86704a4c1adc588e7ce249826e98f
parent77955935e9549a847ae7e0d78819f090d429fdb6 (diff)
downloaddebian-packages-a307e0474e78c51590aeac95dbc5587a87ef6501.tar.gz
debian-packages-a307e0474e78c51590aeac95dbc5587a87ef6501.zip
refactor scripts packages
-rw-r--r--build.gradle10
-rw-r--r--packages/scripts-cern/build.gradle (renamed from packages/cern-scripts/build.gradle)0
-rwxr-xr-xpackages/scripts-cern/resources/bin/database-tunnels.sh (renamed from packages/cern-scripts/resources/bin/database-tunnels.sh)0
-rwxr-xr-xpackages/scripts-cern/resources/bin/restart-gwt.sh (renamed from packages/cern-scripts/resources/bin/restart-gwt.sh)0
-rw-r--r--packages/scripts-cern/resources/lib/aisadm-fingerprint (renamed from packages/cern-scripts/resources/lib/aisadm-fingerprint)0
-rw-r--r--packages/scripts/build.gradle6
-rwxr-xr-xpackages/scripts/resources/bin/dmenu-pass.sh (renamed from packages/cern-scripts/resources/bin/dmenu-pass.sh)0
-rwxr-xr-xpackages/scripts/resources/bin/dmenu-software.sh (renamed from packages/cern-scripts/resources/bin/dmenu-software.sh)0
-rwxr-xr-xpackages/scripts/resources/bin/gnome-commands.md (renamed from packages/cern-scripts/resources/bin/gnome-commands.sh)2
-rwxr-xr-xpackages/scripts/resources/bin/smtp-server.py (renamed from packages/cern-scripts/resources/bin/smtp-server.py)0
-rwxr-xr-xpackages/scripts/resources/bin/telepath-setpresence.sh (renamed from packages/cern-scripts/resources/bin/telepath-setpresence.sh)0
-rw-r--r--packages/scripts/resources/lib/activate.inc.sh (renamed from packages/cern-scripts/resources/lib/activate.inc.sh)0
-rw-r--r--packages/scripts/resources/lib/environments.inc.sh (renamed from packages/cern-scripts/resources/lib/environments.inc.sh)0
13 files changed, 12 insertions, 6 deletions
diff --git a/build.gradle b/build.gradle
index 75f4766..856347d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -18,7 +18,7 @@ ext {
sshUser = 'yvesf'
sshHost = 'xapek.org'
sshTargetDir = 'public_html/public/debian/files'
- sshRebuildCommand = 'cd public_html/public/debian && make'
+ sshReindexCommand = 'cd public_html/public/debian && make'
}
allprojects {
@@ -36,8 +36,8 @@ allprojects {
}
}
-def rebuildRepositoryIndex = tasks.create('rebuildRepositoryIndex')
-rebuildRepositoryIndex << {
+def reindex = tasks.create('reindex')
+reindex << {
ant.taskdef(
name: 'antSsh',
classname: 'org.apache.tools.ant.taskdefs.optional.ssh.SSHExec',
@@ -48,7 +48,7 @@ rebuildRepositoryIndex << {
username: sshUser,
keyfile: file(sshKeyfile),
knownhosts: file(sshKnownHosts),
- command: sshRebuildCommand,
+ command: sshReindexCommand,
verbose: true)
}
@@ -84,4 +84,4 @@ subprojects {
project.afterEvaluate {
ospackage.version = "${project.version}-${new Date().format("yyyyMMdd-HHmmss")}"
}
-} \ No newline at end of file
+}
diff --git a/packages/cern-scripts/build.gradle b/packages/scripts-cern/build.gradle
index d10b19e..d10b19e 100644
--- a/packages/cern-scripts/build.gradle
+++ b/packages/scripts-cern/build.gradle
diff --git a/packages/cern-scripts/resources/bin/database-tunnels.sh b/packages/scripts-cern/resources/bin/database-tunnels.sh
index 1f74c84..1f74c84 100755
--- a/packages/cern-scripts/resources/bin/database-tunnels.sh
+++ b/packages/scripts-cern/resources/bin/database-tunnels.sh
diff --git a/packages/cern-scripts/resources/bin/restart-gwt.sh b/packages/scripts-cern/resources/bin/restart-gwt.sh
index 3870874..3870874 100755
--- a/packages/cern-scripts/resources/bin/restart-gwt.sh
+++ b/packages/scripts-cern/resources/bin/restart-gwt.sh
diff --git a/packages/cern-scripts/resources/lib/aisadm-fingerprint b/packages/scripts-cern/resources/lib/aisadm-fingerprint
index d913b51..d913b51 100644
--- a/packages/cern-scripts/resources/lib/aisadm-fingerprint
+++ b/packages/scripts-cern/resources/lib/aisadm-fingerprint
diff --git a/packages/scripts/build.gradle b/packages/scripts/build.gradle
new file mode 100644
index 0000000..d10b19e
--- /dev/null
+++ b/packages/scripts/build.gradle
@@ -0,0 +1,6 @@
+version '1.0'
+
+ospackage {
+ into "/opt/${project.name}"
+ from files('resources')
+}
diff --git a/packages/cern-scripts/resources/bin/dmenu-pass.sh b/packages/scripts/resources/bin/dmenu-pass.sh
index bb3be7a..bb3be7a 100755
--- a/packages/cern-scripts/resources/bin/dmenu-pass.sh
+++ b/packages/scripts/resources/bin/dmenu-pass.sh
diff --git a/packages/cern-scripts/resources/bin/dmenu-software.sh b/packages/scripts/resources/bin/dmenu-software.sh
index bca5b54..bca5b54 100755
--- a/packages/cern-scripts/resources/bin/dmenu-software.sh
+++ b/packages/scripts/resources/bin/dmenu-software.sh
diff --git a/packages/cern-scripts/resources/bin/gnome-commands.sh b/packages/scripts/resources/bin/gnome-commands.md
index ab9de7d..56ff017 100755
--- a/packages/cern-scripts/resources/bin/gnome-commands.sh
+++ b/packages/scripts/resources/bin/gnome-commands.md
@@ -1,4 +1,4 @@
-#!/bin/sh
+
here=`dirname "$0"`
here=`realpath "$here"`
set -x
diff --git a/packages/cern-scripts/resources/bin/smtp-server.py b/packages/scripts/resources/bin/smtp-server.py
index 1cfef81..1cfef81 100755
--- a/packages/cern-scripts/resources/bin/smtp-server.py
+++ b/packages/scripts/resources/bin/smtp-server.py
diff --git a/packages/cern-scripts/resources/bin/telepath-setpresence.sh b/packages/scripts/resources/bin/telepath-setpresence.sh
index 5187bb6..5187bb6 100755
--- a/packages/cern-scripts/resources/bin/telepath-setpresence.sh
+++ b/packages/scripts/resources/bin/telepath-setpresence.sh
diff --git a/packages/cern-scripts/resources/lib/activate.inc.sh b/packages/scripts/resources/lib/activate.inc.sh
index 79bed6b..79bed6b 100644
--- a/packages/cern-scripts/resources/lib/activate.inc.sh
+++ b/packages/scripts/resources/lib/activate.inc.sh
diff --git a/packages/cern-scripts/resources/lib/environments.inc.sh b/packages/scripts/resources/lib/environments.inc.sh
index 8960d95..8960d95 100644
--- a/packages/cern-scripts/resources/lib/environments.inc.sh
+++ b/packages/scripts/resources/lib/environments.inc.sh