Hello community,

here is the log from the commit of package linuxrc-devtools for 
openSUSE:Factory checked in at 2017-08-18 15:05:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/linuxrc-devtools (Old)
 and      /work/SRC/openSUSE:Factory/.linuxrc-devtools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "linuxrc-devtools"

Fri Aug 18 15:05:42 2017 rev:5 rq:517366 version:0.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/linuxrc-devtools/linuxrc-devtools.changes        
2017-08-12 20:27:20.898802467 +0200
+++ /work/SRC/openSUSE:Factory/.linuxrc-devtools.new/linuxrc-devtools.changes   
2017-08-18 15:05:49.142196783 +0200
@@ -1,0 +2,18 @@
+Thu Aug 17 10:55:18 UTC 2017 - [email protected]
+
+- merge gh#openSUSE/linuxrc-devtools#10
+- fix typo in make_package
+- 0.10
+
+--------------------------------------------------------------------
+Thu Aug 17 08:19:38 UTC 2017 - [email protected]
+
+- merge gh#openSUSE/linuxrc-devtools#9
+- write VERSION file only when really needed
+- update link to home project in git2log
+- skip *.changes file in 'package' dir
+- add --prepare option to build_it script
+- add make_package script
+- 0.9
+
+--------------------------------------------------------------------

Old:
----
  linuxrc-devtools-0.8.tar.xz

New:
----
  linuxrc-devtools-0.10.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ linuxrc-devtools.spec ++++++
--- /var/tmp/diff_new_pack.UY2eDi/_old  2017-08-18 15:05:49.974079620 +0200
+++ /var/tmp/diff_new_pack.UY2eDi/_new  2017-08-18 15:05:49.978079057 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           linuxrc-devtools
-Version:        0.8
+Version:        0.10
 Release:        0
 Source:         %{name}-%{version}.tar.xz
 

++++++ linuxrc-devtools-0.8.tar.xz -> linuxrc-devtools-0.10.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/linuxrc-devtools-0.8/VERSION 
new/linuxrc-devtools-0.10/VERSION
--- old/linuxrc-devtools-0.8/VERSION    2017-08-10 16:07:39.000000000 +0200
+++ new/linuxrc-devtools-0.10/VERSION   2017-08-17 12:55:18.000000000 +0200
@@ -1 +1 @@
-0.8
+0.10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/linuxrc-devtools-0.8/build_it 
new/linuxrc-devtools-0.10/build_it
--- old/linuxrc-devtools-0.8/build_it   2017-08-10 16:07:39.000000000 +0200
+++ new/linuxrc-devtools-0.10/build_it  2017-08-17 12:55:18.000000000 +0200
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /bin/bash -e
 
 unset LANG
 
@@ -19,6 +19,13 @@
     continue
   fi
 
+  if [ "$1" = "--prepare" ] ; then
+    prepare="$2"
+    shift
+    shift
+    continue
+  fi
+
   break
 done
 
@@ -26,22 +33,28 @@
   branch=$1
 fi
 
-clean_target=clean
-grep -q -s distclean: Makefile* && clean_target=distclean
-
 git status
 git checkout $branch
 git pull
 
-make $clean_target
+if [ -z "$prepare" ] ; then
+  clean_target=clean
+  grep -q -s distclean: Makefile* && clean_target=distclean
+
+  make $clean_target
+
+  if [ -d package ] ; then
+    echo 'old archive files found!'
+    exit 1
+  fi
 
-if [ -d package ] ; then
-  echo 'old archive files found!'
-  exit 1
+  make archive
+else
+  $prepare
 fi
 
-make archive
-
 tobs $dist
 
-make $clean_target
+if [ -z "$prepare" ] ; then
+  make $clean_target
+fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/linuxrc-devtools-0.8/changelog 
new/linuxrc-devtools-0.10/changelog
--- old/linuxrc-devtools-0.8/changelog  2017-08-10 16:07:39.000000000 +0200
+++ new/linuxrc-devtools-0.10/changelog 2017-08-17 12:55:18.000000000 +0200
@@ -1,3 +1,15 @@
+2017-08-17:    0.10
+       - merge gh#openSUSE/linuxrc-devtools#10
+       - fix typo in make_package
+
+2017-08-17:    0.9
+       - merge gh#openSUSE/linuxrc-devtools#9
+       - write VERSION file only when really needed
+       - update link to home project in git2log
+       - skip *.changes file in 'package' dir
+       - add --prepare option to build_it script
+       - add make_package script
+
 2017-08-10:    0.8
        - merge gh#openSUSE/linuxrc-devtools#8
        - added --(no-)keep-date options
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/linuxrc-devtools-0.8/git2log 
new/linuxrc-devtools-0.10/git2log
--- old/linuxrc-devtools-0.8/git2log    2017-08-10 16:07:39.000000000 +0200
+++ new/linuxrc-devtools-0.10/git2log   2017-08-17 12:55:18.000000000 +0200
@@ -2,7 +2,7 @@
 
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 #
-# This script is maintained at https://github.com/openSUSE/ssob
+# This script is maintained at https://github.com/openSUSE/linuxrc-devtools
 #
 # If you're in another project, this is just a copy.
 # You may update it to the latest version from time to time...
@@ -108,9 +108,18 @@
 
 # just print current version
 if($opt_version) {
-  open my $f, ">$opt_file";
-  print $f "$config->{version}\n";
-  close $f;
+  my $old_version;
+
+  if($opt_file ne '-' && open(my $f, $opt_file)) {
+    chomp($old_version = <$f>);
+    close $f;
+  }
+
+  if($config->{version} ne $old_version) {
+    open my $f, ">$opt_file";
+    print $f "$config->{version}\n";
+    close $f;
+  }
 
   exit 0;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/linuxrc-devtools-0.8/make_package 
new/linuxrc-devtools-0.10/make_package
--- old/linuxrc-devtools-0.8/make_package       1970-01-01 01:00:00.000000000 
+0100
+++ new/linuxrc-devtools-0.10/make_package      2017-08-17 12:55:18.000000000 
+0200
@@ -0,0 +1,50 @@
+#! /bin/bash -xe
+
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+#
+# This script is maintained at https://github.com/openSUSE/linuxrc-devtools
+#
+# If you're in another project, this is just a copy.
+# You may update it to the latest version from time to time...
+#
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+PATH=$PATH:utils
+
+while true ; do
+  if [ "$1" = "--name" ] ; then
+    PACKAGE_NAME="$2"
+    shift
+    shift
+    continue
+  fi
+
+  break
+done
+
+if [ -z "$PACKAGE_NAME" ] ; then
+  echo no package name set
+  exit 1
+fi
+
+VERSION=`git2log --version VERSION ; cat VERSION`
+PACKAGE_PREFIX=$PACKAGE_NAME-$VERSION
+BRANCH=`[ -d .git ] && git branch | perl -ne 'print $_ if s/^\*\s*//'`
+
+mkdir -p package
+rm -f package/*.tar.xz package/*.changes
+
+git2log --changelog --format obs package/$PACKAGE_NAME.changes
+
+if [ ! -d .git ] ; then
+  echo no git repo
+  exit 1
+fi
+
+git archive --prefix=$PACKAGE_PREFIX/ $BRANCH > package/$PACKAGE_PREFIX.tar
+
+tar -r -f package/$PACKAGE_PREFIX.tar \
+  --mode=0664 --owner=root --group=root \
+  --mtime="`git show -s --format=%ci`" \
+  --transform="s:^:$PACKAGE_PREFIX/:" VERSION
+xz -f package/$PACKAGE_PREFIX.tar
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/linuxrc-devtools-0.8/tobs 
new/linuxrc-devtools-0.10/tobs
--- old/linuxrc-devtools-0.8/tobs       2017-08-10 16:07:39.000000000 +0200
+++ new/linuxrc-devtools-0.10/tobs      2017-08-17 12:55:18.000000000 +0200
@@ -189,6 +189,7 @@
 die "no version info\n" if $config->{version} eq "";
 
 my @s = map { s#^[^/]*/##; $_ } glob("package/*");
+@s = grep { !/\.changes$/ } @s;
 die "no source files\n" if !@s;
 
 $config->{archive} = "$config->{package}-$config->{version}.tar";


Reply via email to