Commits

Guido Draheim committed 2e93d39

add osc target

  • Participants
  • Parent commits 18e9406

Comments (0)

Files changed (2)

 	   
 trac restart:
 	sudo /sbin/service tracd restart
+
+OSC_ROOT = /my/own/osc
+OSC_PROJECT = home:guidod:trac12
+OSC_PACKAGE = trac-dvbcronrecording-plugin
+OSC = $(OSC_ROOT)/$(OSC_PROJECT)/$(OSC_PACKAGE)
+osc: dist
+	@ version=`cat $(SPECNAME).spec | sed -e '/define _version/!d' -e 's/.*_version //'` \
+	; tarball="$(RPMROOT)/SOURCES/$(PKG)-$$version.tgz" \
+	; specpath="$(RPMROOT)/SPECS/$(SPECNAME).spec" \
+	; if [ -f "$$tarball" ]; then set -x \
+	;    (cd $(OSC) && osc rm *.tgz) \
+	;    cp -v "$$tarball" $(OSC)/ \
+	;    (cd $(OSC) && osc add `basename "$$tarball"` \
+	;    cp -v "$$specpath" $(OSC)/$(SPECNAME).spec \
+	;    (cd $(OSC) && osc ci -m "update $$version") \
+	; else : \
+	;    echo "failed to find $$tarball" \
+	; fi	  
+
+.PHONY: osc trac restart update install dist sdist msgfmt
+
+	

src/trac-dvbcronrecording-plugin.spec

 # norootforbuild
-%define _version 0.4.17
+%define _version 0.4.16
 %define _name DvbCronRecording
 %define _pkg dvbcronrecording
 %{!?revision: %define revision 0 }