Changes

From SME Server
Jump to navigationJump to search
20 bytes added ,  00:34, 17 June 2015
Line 638: Line 638:  
  cvs add $2
 
  cvs add $2
 
  cd $2
 
  cd $2
 +
 
  #import correct date of first import
 
  #import correct date of first import
 
  echo $(date +%s) > import.log
 
  echo $(date +%s) > import.log
 +
 
  #copy makefile from my home '''FIXME'''
 
  #copy makefile from my home '''FIXME'''
 
  cp -f ~/Makefile .
 
  cp -f ~/Makefile .
 
  sed -i -e "s/smeserver-durep/$1/g" Makefile
 
  sed -i -e "s/smeserver-durep/$1/g" Makefile
 +
 
  #wget the srpm by remote url  
 
  #wget the srpm by remote url  
 
  wget $3
 
  wget $3
 +
 
  #untar the srpm
 
  #untar the srpm
 
  rpm2cpio  *.src.rpm | cpio -idmv --no-absolute-filenames
 
  rpm2cpio  *.src.rpm | cpio -idmv --no-absolute-filenames
 +
 
  #import the new source
 
  #import the new source
 
  make new-sources FILES=*.?z
 
  make new-sources FILES=*.?z
 +
 
  #a bit of clean
 
  #a bit of clean
 
  rm -rf *.src.rpm *.?z  
 
  rm -rf *.src.rpm *.?z  
 +
 
  #import all to cvs
 
  #import all to cvs
 
  cvs add *
 
  cvs add *
 +
 
  #sed work
 
  #sed work
 
  version=$(grep -sri 'define version' *.spec | sed 's/%define version //gI')
 
  version=$(grep -sri 'define version' *.spec | sed 's/%define version //gI')
 
  release=$(grep -sri 'define release' *.spec | sed 's/%define release //gI')
 
  release=$(grep -sri 'define release' *.spec | sed 's/%define release //gI')
 +
 
  #bump the release
 
  #bump the release
 
  release=$((release + 1))
 
  release=$((release + 1))
 +
 
  #write to the spec file
 
  #write to the spec file
 
  sed -i "/%define release/c %define release $release" *.spec
 
  sed -i "/%define release/c %define release $release" *.spec

Navigation menu