aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-03-22 05:21:25 -0300
committerEuAndreh <eu@euandre.org>2021-03-22 05:21:25 -0300
commitfe062ea72a86dd0b042d598312b556def067e7c4 (patch)
treefe711d69eb4465af7bfff3e46c4c352c83c1fc98 /scripts
parentAdd base skeleton project files (diff)
downloadgit-permalink-fe062ea72a86dd0b042d598312b556def067e7c4.tar.gz
git-permalink-fe062ea72a86dd0b042d598312b556def067e7c4.tar.xz
Add scripts/git-permalink.in stub
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/git-permalink.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/git-permalink.in b/scripts/git-permalink.in
new file mode 100755
index 0000000..13231ec
--- /dev/null
+++ b/scripts/git-permalink.in
@@ -0,0 +1,18 @@
+#!/bin/sh
+set -eu
+
+usage() {
+ cat <<EOF
+ $0 FILE [REF]
+EOF
+}
+
+FILE="${1:-}"
+if [ -z "$FILE" ]; then
+ printf 'Missing FILE argument.\n'
+ usage
+ exit 1
+fi
+
+# cgit, sourcehut, savannah, codeberg, notabug, pagure, bitbucket, gitlab, github
+# Bitbucket Codeberg GitHub GitLab Pagure SourceHut