[Erp5-report] r8071 - /spec/mandriva/2006.0/build-spec

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 19 19:21:50 CEST 2006


Author: kevin
Date: Mon Jun 19 19:21:46 2006
New Revision: 8071

URL: http://svn.erp5.org?rev=8071&view=rev
Log:
Adapt the script to the new repository structure.
Add some idea to automate building.

Modified:
    spec/mandriva/2006.0/build-spec

Modified: spec/mandriva/2006.0/build-spec
URL: http://svn.erp5.org/spec/mandriva/2006.0/build-spec?rev=8071&r1=8070&r2=8071&view=diff
==============================================================================
--- spec/mandriva/2006.0/build-spec (original)
+++ spec/mandriva/2006.0/build-spec Mon Jun 19 19:21:46 2006
@@ -67,13 +67,14 @@
   # Get data from the previous spec file commited in the SVN repository
   ####################
 
-  SPEC_FILE="zope-$NAME.spec"
+  SPEC_DIR="zope-$NAME"
+  SPEC_FILE="$SPEC_DIR.spec"
 
   # Now we will regenerate a spec file skeleton based on the one stored in the SVN.
   # This spec file need to be modified by hand to get
   cd $SVN_PATH
   rm -f $SPEC_FILE
-  wget --no-check-certificate $REPOSIT/$SPEC_REPOSITORY/$SPEC_FILE
+  wget --no-check-certificate $REPOSIT/$SPEC_REPOSITORY/$SPEC_DIR/$SPEC_FILE
 
   # Get summary and required packages
   SUMMARY=`grep "^Summary*" $SPEC_FILE`
@@ -148,17 +149,20 @@
 
 $CHANGELOG" >> $TMP_SPEC
 
-  # now we can replace the spec file
+  # Now we can replace the spec file
   rm -f $RPM_PATH/SPECS/$SPEC_FILE
   mv -f $TMP_SPEC $RPM_PATH/SPECS/$SPEC_FILE
 
   # rpmbuild -ba $RPM_PATH/SPECS/$SPEC_FILE
 
-  # TODO: launch rpmlint here.
+  # Idea: launch rpmlint here.
+
+  # Idea: commit to Nexedi HTTP repository here.
 
   echo "-------------"
   echo "Please commit the new $SPEC_FILE file in $REPOSIT/$SPEC_REPOSITORY"
   echo "-------------"
+  # svn commit --message "New $VERSION-$RELEASE release" $SPEC_FILE
 
 done
 




More information about the Erp5-report mailing list