diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-12-28 16:52:56 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-12-28 16:52:56 +0100 |
commit | 7b358424ebad9349421acd533c2fa1cbf6cf3e3e (patch) | |
tree | 686678532eefed525c242fd214d0cfb2914726c5 /app/tools/oldscripts |
Initial import of xtrkcad version 1:4.0.2-2
Diffstat (limited to 'app/tools/oldscripts')
-rw-r--r-- | app/tools/oldscripts/README | 4 | ||||
-rw-r--r-- | app/tools/oldscripts/checkall | 10 | ||||
-rw-r--r-- | app/tools/oldscripts/diffall | 37 | ||||
-rw-r--r-- | app/tools/oldscripts/fetchall | 46 | ||||
-rw-r--r-- | app/tools/oldscripts/makeall | 23 | ||||
-rw-r--r-- | app/tools/oldscripts/markall | 17 | ||||
-rw-r--r-- | app/tools/oldscripts/mkwinrlse | 34 | ||||
-rw-r--r-- | app/tools/oldscripts/roall | 22 |
8 files changed, 193 insertions, 0 deletions
diff --git a/app/tools/oldscripts/README b/app/tools/oldscripts/README new file mode 100644 index 0000000..a9ee346 --- /dev/null +++ b/app/tools/oldscripts/README @@ -0,0 +1,4 @@ +Not all of these scripts are fully tested. Use at your own risk. + + +JBB diff --git a/app/tools/oldscripts/checkall b/app/tools/oldscripts/checkall new file mode 100644 index 0000000..51e6861 --- /dev/null +++ b/app/tools/oldscripts/checkall @@ -0,0 +1,10 @@ +#!/bin/sh +cd ~/xtrkcad/src +for d in bin help lib lib/params lib/demos lib/examples tools ; do + rlog -R -L $d/RCS/*,v +done +cd ~/wlib/src +for d in include mswlib test gtklib ; do + rlog -R -L $d/RCS/*,v +done + diff --git a/app/tools/oldscripts/diffall b/app/tools/oldscripts/diffall new file mode 100644 index 0000000..0dd6695 --- /dev/null +++ b/app/tools/oldscripts/diffall @@ -0,0 +1,37 @@ +#!/bin/sh +if [ $# -lt 1 ] ; then + echo "Usage: checkall <RLSE> [<home>]" + exit 1 +fi +RLSE=$1 +HOMEDIR=$HOME +if [ $# -eq 2 ] ; then + HOMEDIR=$2 +fi +cd ${HOMEDIR}/xtrkcad/$RLSE +for d in bin help lib lib/params lib/demos lib/examples tools ; do + echo === $d + ( cd $d + for f in `make rcssrc` ; do + if rcsdiff -q -r$RLSE -r1. $f > /dev/null ; then + true + else + echo $d/$f diffs + fi + done + ) +done +cd ${HOMEDIR}/wlib/$RLSE +for d in include mswlib test gtklib ; do + echo === $d + ( cd $d + for f in `make rcssrc` ; do + if rcsdiff -q -r$RLSE -r1. $f > /dev/null ; then + true + else + echo $d/$f diffs + fi + done + ) +done + diff --git a/app/tools/oldscripts/fetchall b/app/tools/oldscripts/fetchall new file mode 100644 index 0000000..5a88f73 --- /dev/null +++ b/app/tools/oldscripts/fetchall @@ -0,0 +1,46 @@ +#!/bin/sh + +fetchdir() { + echo fetching $1 + mkdir $1 + ( cd $1; ln -s ../$2/src/$1/RCS . ; co -r$RLSE Makefile ; co -r$RLSE `make rcssrc` ) +} + +if [ $# -lt 1 ] ; then + echo fetchall RLSE + exit 1 +fi +RLSE=$1 +if [ -d ~/xtrkcad/$RLSE ] ; then + echo ~/xtrkcad/$RLSE exists + exit 1 +fi +if [ -d ~/wlib/$RLSE ] ; then + echo ~/wlib/$RLSE exists + exit 1 +fi + +mkdir ~/xtrkcad/$RLSE +cd ~/xtrkcad/$RLSE +fetchdir bin .. +fetchdir help .. +fetchdir lib .. +fetchdir lib/demos ../.. +fetchdir lib/examples ../.. +fetchdir lib/params ../.. +fetchdir tools .. +mkdir ~/wlib/$RLSE +cd ~/wlib/$RLSE +fetchdir include .. +fetchdir mswlib .. +fetchdir test .. +fetchdir gtklib .. + +mkdir ~/xtrkcad/$RLSE/help/images.orig +cp ~/xtrkcad/dev/help/images.orig/*.png ~/xtrkcad/$RLSE/help/images.orig +cp ~/xtrkcad/dev/bin/xtrkcad.ico ~/xtrkcad/$RLSE/bin/ +cp ~/xtrkcad/dev/lib/register.* ~/xtrkcad/$RLSE/lib/ +chmod 444 ~/xtrkcad/$RLSE/lib/register.* +cp ~/wlib/dev/test/wtest.ico ~/wlib/$RLSE/test/ +ln -s ~/wlib/$RLSE ~/xtrkcad/$RLSE/bin/wlib + diff --git a/app/tools/oldscripts/makeall b/app/tools/oldscripts/makeall new file mode 100644 index 0000000..896cb41 --- /dev/null +++ b/app/tools/oldscripts/makeall @@ -0,0 +1,23 @@ +#!/bin/sh + +if [ $# -lt 1 ] ; then + echo mkrlse RLSE + exit 1 +fi +RLSE=$1 +if [ \! -d ~/xtrkcad/$RLSE ] ; then + echo ~/xtrkcad/$RLSE does not exist + exit 1 +fi + + cd ~/wlib/$RLSE/gtklib && \ + make update && \ + cd ~/xtrkcad/$RLSE/help && \ + make pngs && \ + make && \ + cd ../lib/params && \ + make && \ + cd .. && \ + make && \ + cd ../bin && \ + make update diff --git a/app/tools/oldscripts/markall b/app/tools/oldscripts/markall new file mode 100644 index 0000000..ae41d71 --- /dev/null +++ b/app/tools/oldscripts/markall @@ -0,0 +1,17 @@ +#!/bin/sh +if [ $# -lt 1 ] ; then + echo "markall TAG" + exit 1 +fi +TAG=$1 +cd ~/xtrkcad/src +for d in bin help lib lib/params lib/demos lib/examples tools ; do + echo xtrkcad/src/$d: + (cd $d ; co Makefile ; rcs -N$TAG:1. `make rcssrc`) +done +cd ~/wlib/src +for d in include mswlib test gtklib ; do + echo wlib/src/$d + (cd $d ; co Makefile ; rcs -N$TAG:1. `make rcssrc`) +done + diff --git a/app/tools/oldscripts/mkwinrlse b/app/tools/oldscripts/mkwinrlse new file mode 100644 index 0000000..15358f5 --- /dev/null +++ b/app/tools/oldscripts/mkwinrlse @@ -0,0 +1,34 @@ +#!/bin/sh + +rm -fr mswrel +if [ -d mswrel ] ; then + echo ./mswrel already exists + exit 1 +fi + +mkdir mswrel +mkdir mswrel/demos +mkdir mswrel/examples +mkdir mswrel/params +echo lib/demos +(cd lib/demos; for f in *.xtr ; do addcr < $f > ../../mswrel/demos/$f ; done ) +echo lib/examples +(cd lib/examples; for f in *.xtc ; do addcr < "$f" > ../../mswrel/examples/"$f" ; done ) +echo lib/params +(cd lib/params; for f in *.xtp ; do addcr < $f > ../../mswrel/params/$f ; done ) +echo lib +cp bin/Release/xtrkcad.exe mswrel +echo release +cp bin/Debug/xtrkcad.exe mswrel/xtrkcadd.exe +echo debug +addcr < COPYING > mswrel/license.txt +echo license +addcr < lib/aareadme.txt > mswrel/aareadme.txt +addcr < lib/xtrkcad.bug > mswrel/xtrkcad.bug +addcr < lib/xtrkcad.enh > mswrel/xtrkcad.enh +addcr < lib/xtrkcad.fix > mswrel/xtrkcad.fix +addcr < lib/xtrkcad.upd > mswrel/xtrkcad.upd +addcr < help/xtrkcad.tip > mswrel/xtrkcad.tip +addcr < lib/xtrkcad.xtq > mswrel/xtrkcad.xtq +chmod -w -R mswrel +chmod +w mswrel mswrel/demos mswrel/examples mswrel/params diff --git a/app/tools/oldscripts/roall b/app/tools/oldscripts/roall new file mode 100644 index 0000000..28f156b --- /dev/null +++ b/app/tools/oldscripts/roall @@ -0,0 +1,22 @@ +#!/bin/sh +if [ $# != 1 ] ; then + echo "Usage: roall <RLSE>" + exit 1 +fi +cd ~/xtrkcad/$1 +for d in bin help lib lib/params lib/demos lib/examples tools ; do + (cd $d; for f in `make rcssrc` ; do + if [ -w $f ] ; then + echo $d/$f is writable + fi + done) +done +cd ~/wlib/$1 +for d in include mswlib test gtklib ; do + (cd $d;for f in `make rcssrc` ; do + if [ -w $f ] ; then + echo $d/$f is writable + fi + done) +done + |