aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xphlogrss6
-rwxr-xr-xphlogthis22
2 files changed, 24 insertions, 4 deletions
diff --git a/phlogrss b/phlogrss
index 767b083..e42acb0 100755
--- a/phlogrss
+++ b/phlogrss
@@ -2,7 +2,9 @@
# create a gopher rss feed
-phloglink="gopher://spike.nagatha.fr/0/phlog"
+cd $HOME/src/gopher/phlog
+
+phloglink="gopher://spike.nagatha.fr/1/phlog"
description="Phil's Phlog"
rsslink=gopher://spike.nagatha.fr/0/phlog/rss.xml
filename=$HOME/src/gopher/phlog/rss.xml
@@ -68,7 +70,7 @@ for dir in "${dir_array[@]}"; do
title=$(head -n1 "$post/gophermap")
postdate=$(cat "$post/gophermap" | sed -n '2p')
postname=${post##*/}
- linkadd="$phloglink/$post/gophermap"
+ linkadd="$phloglink/$post"
description="$(cat "$post/gophermap" | sed -n "/^$/,/^$/p" | head --lines 3) …"
build_item "$post"
done
diff --git a/phlogthis b/phlogthis
index 0cccfb0..b080b34 100755
--- a/phlogthis
+++ b/phlogthis
@@ -23,7 +23,8 @@ dirname="$filedate-$filetitle"
# make local and remote dirs
mkdir $root/$dirname
-#ssh spike mkdir $remoteroot/$dirname
+echo "creating remote directory..."
+ssh spike mkdir $remoteroot/$dirname
# edit text
micro +4:1 "$editfile"
@@ -38,8 +39,25 @@ sed -i "1s/^/$header/" $article
dest="$root/$dirname/gophermap"
mv "$article" "$dest"
rm $editfile
+
+clear
+cat $dest
+
+echo " "
+read -p "Do you want to edit this text? : " choix1
+
+if [ "$choix1" != "n" ] ; then
+ clear
+ micro $dest
+fi
+
echo "Article saved as $dest"
-echo "Run phlogmap to update the main gophermap"
+
+read -p "Run phlogmap & phlogrss & gosend? ; " choix2
+
+if [ "$choix2" != "n" ] ; then
+ phlogmap; phlogrss ; gosend
+fi
popd
exit 0