mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
permit "git pull" on earlier IIAB's, leaving legacy subdirs like info/html untouched
This commit is contained in:
parent
5f6cd46154
commit
55ce3d99e4
1 changed files with 24 additions and 27 deletions
|
@ -8,9 +8,6 @@ INPUT=/tmp/iiab-wiki
|
||||||
OUTPUT=/tmp/iiab-wiki.out
|
OUTPUT=/tmp/iiab-wiki.out
|
||||||
DESTPATH=/library/www/html/info
|
DESTPATH=/library/www/html/info
|
||||||
|
|
||||||
# for-loop at bottom chokes on directories: this workaround permits "git pull" on IIAB systems prior to 2017-10-13
|
|
||||||
rm -rf $DESTPATH/html
|
|
||||||
|
|
||||||
rm -rf $INPUT
|
rm -rf $INPUT
|
||||||
rm -rf $OUTPUT
|
rm -rf $OUTPUT
|
||||||
mkdir -p $INPUT
|
mkdir -p $INPUT
|
||||||
|
@ -41,36 +38,36 @@ lynx -reload -source https://github.com/XSCE/xsce/blob/release-6.2/ReleaseNotes6
|
||||||
lynx -reload -source https://github.com/XSCE/xsce/blob/release-6.2/ReleaseNotes6.1.md > $DESTPATH/ReleaseNotes6.1.html
|
lynx -reload -source https://github.com/XSCE/xsce/blob/release-6.2/ReleaseNotes6.1.md > $DESTPATH/ReleaseNotes6.1.html
|
||||||
|
|
||||||
# Make links refer to local items
|
# Make links refer to local items
|
||||||
for f in `ls $DESTPATH`; do
|
for f in $DESTPATH/*.html; do
|
||||||
sed -i -r "s|https://github.com/iiab/iiab/wiki/([-.A-Za-z0-9]*)|\1.html|g" $DESTPATH/$f
|
sed -i -r "s|https://github.com/iiab/iiab/wiki/([-.A-Za-z0-9]*)|\1.html|g" $f
|
||||||
|
|
||||||
sed -i -e "s|https://github.com/xsce/xsce/blob/release-6.2/\(.*\)\.md\">|\1.html\">|g" $DESTPATH/$f
|
sed -i -e "s|https://github.com/xsce/xsce/blob/release-6.2/\(.*\)\.md\">|\1.html\">|g" $f
|
||||||
sed -i -e "s|https://github.com/xsce/xsce/wiki/\(.*\)\">|\1.html\">|g" $DESTPATH/$f
|
sed -i -e "s|https://github.com/xsce/xsce/wiki/\(.*\)\">|\1.html\">|g" $f
|
||||||
|
|
||||||
sed -i -e "s|http://wiki.laptop.org/go/IIAB/FAQ|FAQ.html|g" $DESTPATH/$f
|
sed -i -e "s|http://wiki.laptop.org/go/IIAB/FAQ|FAQ.html|g" $f
|
||||||
sed -i -e "s|/go/IIAB/FAQ|FAQ.html|g" $DESTPATH/$f
|
sed -i -e "s|/go/IIAB/FAQ|FAQ.html|g" $f
|
||||||
sed -i -e "s|http://wiki.iiab.io/FAQ|FAQ.html|g" $DESTPATH/$f
|
sed -i -e "s|http://wiki.iiab.io/FAQ|FAQ.html|g" $f
|
||||||
sed -i -e "s|http://FAQ.IIAB.IO|FAQ.html|g" $DESTPATH/$f
|
sed -i -e "s|http://FAQ.IIAB.IO|FAQ.html|g" $f
|
||||||
sed -i -e "s|http://faq.iiab.io|FAQ.html|g" $DESTPATH/$f
|
sed -i -e "s|http://faq.iiab.io|FAQ.html|g" $f
|
||||||
sed -i -e "s|http://schoolserver.org/FAQ|FAQ.html|g" $DESTPATH/$f
|
sed -i -e "s|http://schoolserver.org/FAQ|FAQ.html|g" $f
|
||||||
sed -i -e "s|http://schoolserver.org/faq|FAQ.html|g" $DESTPATH/$f
|
sed -i -e "s|http://schoolserver.org/faq|FAQ.html|g" $f
|
||||||
sed -i -e "s|http://wiki.laptop.org/go/XS_Community_Edition/FAQ|FAQ.html|g" $DESTPATH/$f
|
sed -i -e "s|http://wiki.laptop.org/go/XS_Community_Edition/FAQ|FAQ.html|g" $f
|
||||||
|
|
||||||
sed -i -e "s|http://wiki.laptop.org/go/IIAB/Security|Security.html|g" $DESTPATH/$f
|
sed -i -e "s|http://wiki.laptop.org/go/IIAB/Security|Security.html|g" $f
|
||||||
sed -i -e "s|/go/IIAB/Security|Security.html|g" $DESTPATH/$f
|
sed -i -e "s|/go/IIAB/Security|Security.html|g" $f
|
||||||
sed -i -e "s|http://wiki.iiab.io/Security|Security.html|g" $DESTPATH/$f
|
sed -i -e "s|http://wiki.iiab.io/Security|Security.html|g" $f
|
||||||
|
|
||||||
sed -i -e "s|http://wiki.laptop.org/go/IIAB/local_vars.yml|local_vars.yml|g" $DESTPATH/$f
|
sed -i -e "s|http://wiki.laptop.org/go/IIAB/local_vars.yml|local_vars.yml|g" $f
|
||||||
sed -i -e "s|/go/IIAB/local_vars.yml|local_vars.yml|g" $DESTPATH/$f
|
sed -i -e "s|/go/IIAB/local_vars.yml|local_vars.yml|g" $f
|
||||||
sed -i -e "s|http://wiki.iiab.io/local_vars.yml|local_vars.yml|g" $DESTPATH/$f
|
sed -i -e "s|http://wiki.iiab.io/local_vars.yml|local_vars.yml|g" $f
|
||||||
|
|
||||||
sed -i -e "s|http://wiki.laptop.org/go/IIAB/local_vars_min.yml|local_vars_min.yml|g" $DESTPATH/$f
|
sed -i -e "s|http://wiki.laptop.org/go/IIAB/local_vars_min.yml|local_vars_min.yml|g" $f
|
||||||
sed -i -e "s|/go/IIAB/local_vars_min.yml|local_vars_min.yml|g" $DESTPATH/$f
|
sed -i -e "s|/go/IIAB/local_vars_min.yml|local_vars_min.yml|g" $f
|
||||||
sed -i -e "s|http://wiki.iiab.io/local_vars_min.yml|local_vars_min.yml|g" $DESTPATH/$f
|
sed -i -e "s|http://wiki.iiab.io/local_vars_min.yml|local_vars_min.yml|g" $f
|
||||||
|
|
||||||
sed -i -e "s|http://wiki.laptop.org/go/IIAB/local_vars_big.yml|local_vars_big.yml|g" $DESTPATH/$f
|
sed -i -e "s|http://wiki.laptop.org/go/IIAB/local_vars_big.yml|local_vars_big.yml|g" $f
|
||||||
sed -i -e "s|/go/IIAB/local_vars_big.yml|local_vars_big.yml|g" $DESTPATH/$f
|
sed -i -e "s|/go/IIAB/local_vars_big.yml|local_vars_big.yml|g" $f
|
||||||
sed -i -e "s|http://wiki.iiab.io/local_vars_big.yml|local_vars_big.yml|g" $DESTPATH/$f
|
sed -i -e "s|http://wiki.iiab.io/local_vars_big.yml|local_vars_big.yml|g" $f
|
||||||
done
|
done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue