Skip to content

Commit

Permalink
Organize better wiki page updates in git & operational simpliwiki.com…
Browse files Browse the repository at this point in the history
… site
  • Loading branch information
JeanHuguesRobert committed Jul 8, 2014
1 parent 9e12a32 commit 9297094
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions git_to_wiki.sh
@@ -0,0 +1,20 @@
echo Update simpli wiki pages
cd ~
cd SimpliWiki
cd simpli
cd simplijs
cd wiki
pwd
for file in *; do
f=$(basename $file);
other_f="../../../virteal/wiki/$f";
if [ "$f" -nt "$other_f" ]; then
echo Updating $f
cp -f "$f" "$other_f"
git add "$f"
fi
done

cd ..
echo "Done"

2 changes: 1 addition & 1 deletion update.sh → wiki_to_git.sh
Expand Up @@ -8,8 +8,8 @@ pwd
for file in *; do
f=$(basename $file);
other_f="../../../virteal/wiki/$f";
echo Compare $other_f;
if [ "$f" -ot "$other_f" ]; then
echo Updating $f
cp -f "$other_f" "$f"
git add "$f"
fi
Expand Down

0 comments on commit 9297094

Please sign in to comment.