summaryrefslogtreecommitdiffstats
path: root/publish
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2016-11-19 12:50:13 +0100
committerHarald Eilertsen <haraldei@anduin.net>2016-11-19 12:50:13 +0100
commitdc927b4f965715ea0a04835424f98a442349a0fa (patch)
tree4388266f0629e7e5c925c28cf58980104b23bdf0 /publish
parent83d5bd9ed265195344b57dc04b222eb29e1d5e1f (diff)
downloadnorsk-urskog-main-dc927b4f965715ea0a04835424f98a442349a0fa.tar.gz
norsk-urskog-main-dc927b4f965715ea0a04835424f98a442349a0fa.tar.bz2
norsk-urskog-main-dc927b4f965715ea0a04835424f98a442349a0fa.zip
dd publish helper script.
Diffstat (limited to 'publish')
-rwxr-xr-xpublish7
1 files changed, 7 insertions, 0 deletions
diff --git a/publish b/publish
new file mode 100755
index 0000000..e15ad06
--- /dev/null
+++ b/publish
@@ -0,0 +1,7 @@
+#! /usr/bin/bash
+if [ -f "$1" ]
+then
+ published_name=`date -I'date'`-`basename $1`
+ echo "Publishing as $published_name"
+ mv "$1" "blog/_i18n/nb/_posts/$published_name"
+fi