diff --git a/.gitignore b/.gitignore index a8ed7c6..2081b1c 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,8 @@ CVS .#* world/net/place/_*.c world/net/include/place.i +README.txt +INSTALL.txt *~ *.swf *.swp diff --git a/bin/psyconf b/bin/psyconf index 7e390d3..fc43717 100755 --- a/bin/psyconf +++ b/bin/psyconf @@ -426,26 +426,41 @@ then fi X + # it's not a security issue really, but shouldn't control files + # like status-0-beta-OK be outside the sandbox? -lynX + print O < press enter)" +## (cd $sandbox/.. && cvs login && cvs -q update -dP && cvs logout) + echo "" + echo "Fetching update from public git repository..." + echo "" + (cd $sandbox/.. && git fetch origin) + echo "" + echo "You can now read the changes using ${hi}\$0 -d${lo}" + echo "or activate the changes using ${hi}\$0 -m${lo}" + fi if ! test -e $sandbox/status-0-beta-OK then echo "" @@ -454,61 +469,27 @@ then echo "get new updates because of incompatibility." echo "" echo "More information following.." - echo "" + echo "" cat $sandbox/status-0-DEPRECATED echo "" echo "The file you just saw is: ${hi}${lib}/status-0-DEPRECATED${lo}." exit 1 else - echo "automated update functionality no longer available. try" - echo "'git fetch origin', optionally 'git diff master..origin/master'" - echo "and finally 'git merge -s resolve origin' instead" - exit 1 -# echo "" -# echo "${hi}ATTENTION: ${lo}Please give an empty password to log in (-> press enter)" -# (cd $sandbox/.. && cvs login && cvs -q update -dP && cvs logout) -# fi -# if ! test -e $sandbox/status-0-beta-OK -# then -# echo "" -# echo "${hi}ATTENTION:${lo}" -# echo "The version of psyced you are using is outdated. You cannot" -# echo "get new updates because of incompatibility." -# echo "" -# echo "More information following.." -# echo "" -# cat $sandbox/status-0-DEPRECATED -# echo "" -# echo "The file you just saw is: ${hi}${lib}/status-0-DEPRECATED${lo}." -# exit 1 -# else -# echo "It may be a good idea to run ${hi}$0${lo} again before you continue." -# fi + echo "It may be a good idea to run ${hi}\$0${lo} again before you continue." + fi exit fi -# the -d option let's you inspect all the changes done in the CVS -# before you go for an update using -u if test "\$1" = "-d" then - if ! test -e $sandbox/status-0-beta-OK - then - echo "" - echo "${hi}ATTENTION:${lo}" - echo "The version of psyced you are using is outdated. You cannot" - echo "get new updates because of incompatibility." - echo "" - echo "More information following.." - echo "" - cat $sandbox/status-0-DEPRECATED - echo "" - echo "The file you just saw is: ${hi}${lib}/status-0-DEPRECATED${lo}." - exit 1 - else -# (cd $base && cvs -q diff -ur HEAD|\$PAGER) - echo "diff functionality no longer available. see psyced -u." - exit 1 - fi +## (cd $base && cvs -q diff -ur HEAD|\$PAGER) + (cd $base && git diff master..origin/master | \$PAGER) + exit +fi + +if test "\$1" = "-m" +then + (cd $base && git merge -s resolve origin) exit fi