diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2017-09-28 11:20:22 +0200 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2017-09-28 11:20:22 +0200 |
commit | ed9342b2a15fcb98a5e1641b291b9d51f00538e8 (patch) | |
tree | fae6678eac643e3b220ac1cf5529a81f780fe475 /dist/publish | |
parent | 3792be8ab8fe8253fa4758a646963eb7fb95b390 (diff) | |
parent | 3f8ac29339ad67f05d32064fcc810035d55a3985 (diff) | |
download | plan9port-ed9342b2a15fcb98a5e1641b291b9d51f00538e8.tar.gz plan9port-ed9342b2a15fcb98a5e1641b291b9d51f00538e8.tar.bz2 plan9port-ed9342b2a15fcb98a5e1641b291b9d51f00538e8.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'dist/publish')
-rwxr-xr-x | dist/publish | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dist/publish b/dist/publish new file mode 100755 index 00000000..a9b50b88 --- /dev/null +++ b/dist/publish @@ -0,0 +1,29 @@ +#!/usr/local/plan9/bin/rc + +dir=$9fansweb +if (~ $#dir 0) { + dir=$home^/pub/9fans.github.io + 9fansweb=$dir +} + +root=$dir/plan9port +if (! test -d $root) { + echo $root does not exist >[1=2] + exit bad +} + +rm -rf $root/man +cp -a ../man $root/man +mkdir -p $root/unix +cp unix.html $root/unix/index.html +cp main.html $root/index.html +cp ss.html $root/screenshots/index.html +@{cd ../unix/man && mk push} +@{cd ../unix && mk push} + +rm -rf $root/../usr/local/plan9 +mkdir -p $root/../usr/local/plan9 +@{cd ..; git archive HEAD} | @{cd $root/../usr/local/plan9 && u tar xf -} +for(d in `{find $root/../usr/local/plan9 -type d}) { + 9 rc ./mkdirlist $d `{echo $d | sed 's;.*/usr;/usr;'} >t1 && mv t1 $d/index.html +} |