Page MenuHomeDevCentral

D1135.id2902.diff
No OneTemporary

D1135.id2902.diff

diff --git a/nasqueron-operations/Makefile b/nasqueron-operations/Makefile
new file mode 100644
--- /dev/null
+++ b/nasqueron-operations/Makefile
@@ -0,0 +1,16 @@
+# ___ ___ __ __ __ __
+# | Y .--.--.-----| |_.-----.----. | |--|__| |_.----.-----.
+# |. | | | | | _| -__| _| | <| | _| _| _ |
+# |. / \ |___ |__|__|____|_____|__| |__|__|__|____|__| |_____|
+# |: |_____|
+# |::.|:. | Dereckson's $HOME/bin personal collection
+# `--- ---' Wynter-kitro edition
+
+INSTALL=/usr/bin/install
+PREFIX?=${HOME}
+
+make:
+
+make install:
+ ${INSTALL} ops-newuser.sh ${PREFIX}/bin/ops-newuser
+ ${INSTALL} arc-create-ops-task.sh ${PREFIX}/bin/arc-create-ops-task
diff --git a/nasqueron-operations/arc-create-ops-task.sh b/nasqueron-operations/arc-create-ops-task.sh
new file mode 100755
--- /dev/null
+++ b/nasqueron-operations/arc-create-ops-task.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+ARC=arc
+AWK=gawk
+URL="https://devcentral.nasqueron.org"
+
+if [ $# -eq 0 ]; then
+ echo "Usage: $0 <title of the task to create>"
+ exit 64
+fi
+TEXT=$1
+
+arcTaskCreatedId=$($ARC todo "$TEXT" --project servers --no-ansi --conduit-uri "$URL"/api | $AWK '{match($3,"T[0-9]+",a)}END{print a[0]}' | cut -d'T' -f 2)
+echo $URL/T"$arcTaskCreatedId"
diff --git a/nasqueron-operations/newuser b/nasqueron-operations/ops-newuser.sh
rename from nasqueron-operations/newuser
rename to nasqueron-operations/ops-newuser.sh

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 22, 21:35 (16 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2596289
Default Alt Text
D1135.id2902.diff (1 KB)

Event Timeline