summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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