LCDproc development and user support list

Text archives Help


[Lcdproc] Update for make-nightly.sh


Chronological Thread 
  • From: peter AT adpm.de (Peter Marschall)
  • Subject: [Lcdproc] Update for make-nightly.sh
  • Date: Thu Jan 6 20:41:01 2005

Hi Guillaume,

On Monday 03 January 2005 21:45, Guillaume Filion wrote:
> I don't see anything wrong with your script, but I'm not sure what it
> will be used for. I've been using debian for a couple years now, but
> I've never been a package maintainer, so that may explain my
> incomprehension.
>
> Will you use the make-nightly script to generate a nightly .pkg file so
> that debian users can "apt-get upgrade" in unstable or a private
> repository to get the lastest nightly? That would be certainly be cool.

I did not think of providing .deb files for the nightlies.
I only wanted to give the Debina users the chance to create their own
private lcdproc .deb fiel from the nightly snapshot.

With the changes in place, creating your prvate .deb should be as simple as
1) tar xvzf lcdproc-CVS-current.tar.gz
2) cd lcdproc-cvs-current-2005*
3) dpkg-buildpackage -rfakeroot

Well, that's the theory.
I cannot tell if it works for other people than myself ( am only starting to
scratch the surface of the Debian packaging system ;-))

Maybe you can test it and send me your results.


> BTW, the debian directory in stable-0-4-4 only contains two empty
> directories, that generates this error when executing the script:
> ---
> cp: cannot stat `debian/changelog': No such file or directory
> Can't open debian/changelog: No such file or directory.
> chmod: cannot access `debian/rules': No such file or directory
> ---
>
> It looks like directories spread to all branches in CVS... We might want
> to change the
> if [ -d debian ]; then
> test to
> if [ -f debian/changelog ]; then
>
> What do you think?

That only solves one potential error. For debian/rules we need something
similar.
I have attached a patch against the version with my previous patches applied.

> Happy New Year,
2U2

peter
--
Peter Marschall
eMail:
peter AT adpm.de
--- make-nightly.sh
+++ make-nightly.sh	2005-01-06 21:36:03.000000000 +0100
@@ -51,18 +51,18 @@
                           s/(AC_INIT\s*)\(\s*(\[?lcdproc\]?)\s*,\s*[\w\d.-]+(\s*[^)]+)\s*\)/$1($2, $version$3)/;' \
         configure.in
 
+# Increase version number in debian/changelog accordingly
+# use 0.4.99+cvs.... for 0.5pre nightlies to be able to stay in the epoch when moving to 0.5
 if [ -d debian ]; then 
-  # Increase version number in debian/changelog accordingly
-  # use 0.4.99+cvs.... for 0.5pre nightlies to be able to stay in the epoch when moving to 0.5
   cp debian/changelog debian/changelog.temp
   ${PERL} -MPOSIX -i -p -e '$date = strftime("%Y%m%d", localtime);
                             s/\(0\.4\.99\+cvs\d{8}\)/(0.4.99+cvs$date)/i if ($. == 1);' \
           debian/changelog
-	  
-  # Make debian/rules executable
-  chmod +x debian/rules
 fi
 
+# Make debian/rules executable
+test -e debian/rules  &&  chmod +x debian/rules
+
 # Re-generate the autotools files
 sh autogen.sh >/dev/null
 ./configure --silent >/dev/null



Archive powered by MHonArc 2.6.18.

Top of page