Re: [AD] Volunteer to help make release

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Seems sf.net isn't sending e-mails, so no idea when this is coming 
through...

anyway, I got things to work with the attached modified version of Elias' 
patch.

Evert
Index: fix.sh
===================================================================
--- fix.sh	(revision 5800)
+++ fix.sh	(working copy)
@@ -37,7 +37,7 @@
 proc_filelist()
 {
    # common files.
-   AL_FILELIST=`find . -type f "(" \
+   AL_FILELIST=`find . -type f "(" -path '*/.*' -prune -o -print\
       -name "*.c" -o -name "*.cfg" -o -name "*.cpp" -o -name "*.def" -o \
       -name "*.h" -o -name "*.hin" -o -name "*.in" -o -name "*.inc" -o \
       -name "*.m" -o -name "*.m4" -o -name "*.mft" -o -name "*.s" -o \
@@ -46,7 +46,6 @@
       -name "*.inl" -o -name "configure" -o -name "CHANGES" -o \
       -name "AUTHORS" -o -name "THANKS" \
    ")"`
-
    # touch unix shell scripts?
    if [ "$1" != "omit_sh" ]; then
       AL_FILELIST="$AL_FILELIST `find . -type f -name '*.sh'`"
Index: misc/zipup.sh
===================================================================
--- misc/zipup.sh	(revision 5800)
+++ misc/zipup.sh	(working copy)
@@ -177,7 +177,6 @@
 # convert files to djgpp format for distribution
 ./fix.sh djgpp --utod
 
-
 # recursive helper to fill any empty directories with a tmpfile.txt
 scan_for_empties()
 {
@@ -202,12 +201,19 @@
 
 # build the main zip archive
 echo "Creating $name.zip..."
-cd ..
-if [ -f $name.zip ]; then rm $name.zip; fi
-rm -rf allegro/autom4te*
-find allegro -iname "CVS" -prune -o -iname ".*" -prune -o -iname "*.rej" -prune -o -iname "*.orig" -prune -o -print | zip -9 $name.zip -@
+if [ -f .dist/$name.zip ]; then rm .dist/$name.zip; fi
+rm -rf ./autom4te*
+ZIP_FILES=`find . -type f "(" -path "*/.*" -prune -o -iname "*.rej" \
+    -prune -o -iname "*.orig" -prune -o -print ")"`
+mkdir .dist/allegro
+cp -a --parents $ZIP_FILES .dist/allegro
 
+# from now on, the scripts runs inside .dist
+cd .dist
 
+zip -9  -r $name.zip allegro
+
+
 # generate the manifest file
 echo "Generating allegro.mft..."
 unzip -Z1 $name.zip | sort > allegro/allegro.mft


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/