-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
> The fact, that some installers (7-Zip, ActivePerl, JRE, Spybot and 
> others) are lying in the ./install/packages directory and not in 
> subdirectories to that like all the other installers, is annoying me 
> for quite a long time now.
> 
> So I would like to change that and modify the scripts in our CVS so 
> that the installers will be places in subdirectories by the prepare 
> script.
> 
> Does anyone disagree with this plan?
I would really appreciate this change, and if something is going to
be changed in the script-update/check/prepare scripts, there're
other suggestions:

- - as Steffen Kaiser pointed out on unattended-info, perhaps people
  would prefere to have these as perl scripts so we don't need
  cygwin for such updates

- - I didn't try that yet, but it could be possible to get even
cross-platform perl executables with PAR:
http://search.cpan.org/~smueller/PAR-0.94/lib/PAR/Tutorial.pod#Cross-platform_Packages
  so we won't need an installation of perl on a windows server

- - some time ago I did change  script-update  so that
  changes to the .bat files are recorded in the filesystem
(important if we did local changes to them and did override with
script-update or if something goes wron), which I send you attached
as patch

- - with the patch I can select a single file to update, too.


- - Also tried to find a solution to optionally get rid of the
  - after update to newer .bat scripts - redundant files
  but did not succeed; this perhaps could be done better with perl

Just my 2?

Falko
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iQEVAwUBRJKc44kcY98goEs/AQKGFggAsroBoTYiI5pj/u2ovIGuzNAdZIm3uXNr
XlBKycqcsYna0wgi5j+PaW5ma92iRPkJrBUiUEEz4XTu6Vkj9eLVauVeP+IiNC7q
0v41gqzN22iMjvEVgc+Yugz7i/+C9y8bOIo5ZGBuP8n9L7fzLJGAylHegoSrFFuY
jfWekT+93xLNPXJlCo7U44P3Wga9zxs8PF+imCqsYqWwr+VEJdh2iIV4nD0MOOIU
PIYsdnFE6P4gSye2gHVKW2ZPjR99e9Pc/Vj9mshGCoDkyrlZIli6FSqKd2pnmP3S
aFVccp+e1JioJM4ltBtC7T0d6QTYRvt80JLOolnByGeFgmY0QMa9Mw==
=jtA3
-----END PGP SIGNATURE-----
--- script-update.cvs   2006-06-16 13:43:14.000000000 +0200
+++ script-update       2006-06-16 13:51:37.764449075 +0200
@@ -35,16 +35,40 @@
 GREP=$(which grep)
 SORT=$(which sort)
 
+today=`date +%F_%H-%M`
+echo $today
+logdir=../temp/oldscripts
+
+if ! [ -d $logdir ] ; then
+  mkdir -p $logdir
+fi
+
+
 # Change to the scripts directory so paths are correct
 cd "$(dirname "$0")"/../scripts
 
+# if we got a file/file list we process it, else we /dev/null
+if ! [ -z $1 ] ; then
+  pattern="-iname $1"
+fi
+
 # crawl through the script-dir
-for file in $($FIND . -type f | $GREP -v CVS | $SORT)
+for file in $($FIND . -type f $pattern | $GREP -v CVS | $SORT)
 do
     if [[ "[EMAIL PROTECTED]/}}" != "[EMAIL PROTECTED]" ]]; then continue; fi
     if $WGET --output-document "$file.$$.tmp" $CVSLINK/$file?rev=HEAD
     then
-        mv "$file.$$.tmp" "$file"
+       diff "$file.$$.tmp" "$file" > /dev/null
+       if [ $? -eq 0 ] ; then
+         rm "$file.$$.tmp"
+       else
+         echo $today $file changed >> $logdir/update.log
+         echo  >> $logdir/update.log
+         diff -uNr "$file" "$file.$$.tmp" >> $logdir/update.log
+         echo '-------------------------' >> $logdir/update.log
+         cp "$file" "$logdir/$file.$today"
+          mv "$file.$$.tmp" "$file"
+       fi
     else
         rm -f "$file.$$.tmp"
     fi
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to