diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-04-21 10:57:16 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-04-21 10:57:16 +0200 |
commit | 8180d3975cb2af521030bcd46c32fdf2efdedf3f (patch) | |
tree | f721b32af17c2b39d3eab55a630eff1d98a2d952 | |
parent | d8e980cd2d6072ac812ef96b2aea73037cf8d56b (diff) | |
download | pgfuse-8180d3975cb2af521030bcd46c32fdf2efdedf3f.tar.gz pgfuse-8180d3975cb2af521030bcd46c32fdf2efdedf3f.tar.bz2 |
more osc fixes
-rw-r--r-- | Makefile | 20 | ||||
-rw-r--r-- | redhat/pgfuse.spec | 2 | ||||
-rwxr-xr-x | tools/deploy_to_osc.sh | 10 |
3 files changed, 16 insertions, 16 deletions
@@ -136,17 +136,17 @@ install: all cp schema.sql "$(datadir)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)" dist: - rm -rf /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION) - mkdir /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION) - cp -r * /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/. - cd /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION); \ + rm -rf /tmp/$(PACKAGE_NAME)_$(PACKAGE_VERSION) + mkdir /tmp/$(PACKAGE_NAME)_$(PACKAGE_VERSION) + cp -r * /tmp/$(PACKAGE_NAME)_$(PACKAGE_VERSION)/. + cd /tmp/$(PACKAGE_NAME)_$(PACKAGE_VERSION); \ $(MAKE) clean; \ cd .. ; \ - tar cvf $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar \ - $(PACKAGE_NAME)-$(PACKAGE_VERSION) - rm -rf /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION) - mv /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar . + tar cvf $(PACKAGE_NAME)_$(PACKAGE_VERSION).tar \ + $(PACKAGE_NAME)_$(PACKAGE_VERSION) + rm -rf /tmp/$(PACKAGE_NAME)_$(PACKAGE_VERSION) + mv /tmp/$(PACKAGE_NAME)_$(PACKAGE_VERSION).tar . dist-gz: dist - rm -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz - gzip $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar + rm -f $(PACKAGE_NAME)_$(PACKAGE_VERSION).tar.gz + gzip $(PACKAGE_NAME)_$(PACKAGE_VERSION).tar diff --git a/redhat/pgfuse.spec b/redhat/pgfuse.spec index 1293912..b2b5563 100644 --- a/redhat/pgfuse.spec +++ b/redhat/pgfuse.spec @@ -70,7 +70,7 @@ Release: 0.1 License: GPLv3 Group: System Environment/Filesystems -Source: %{name}-%{version}.tar.gz +Source: %{name}_%{version}.tar.gz URL: https://github.com/andreasbaumann/pgfuse diff --git a/tools/deploy_to_osc.sh b/tools/deploy_to_osc.sh index 2229a0e..35befd9 100755 --- a/tools/deploy_to_osc.sh +++ b/tools/deploy_to_osc.sh @@ -4,13 +4,13 @@ PACKAGE_NAME=pgfuse PACKAGE_VERSION=0.0.1 OSC_HOME=$HOME/home:andreas_baumann/$PACKAGE_NAME -rm -f $PACKAGE_NAME-$PACKAGE_VERSION.tar.gz +rm -f ${PACKAGE_NAME}_${PACKAGE_VERSION}.tar.gz make dist-gz -cp $PACKAGE_NAME-$PACKAGE_VERSION.tar.gz $OSC_HOME/$PACKAGE_NAME-$PACKAGE_VERSION.tar.gz +cp ${PACKAGE_NAME}_${PACKAGE_VERSION}.tar.gz $OSC_HOME/${PACKAGE_NAME}_${PACKAGE_VERSION}.tar.gz cp redhat/$PACKAGE_NAME.spec $OSC_HOME/$PACKAGE_NAME.spec -SIZE=`stat -c '%s' $OSC_HOME/$PACKAGE_NAME-$PACKAGE_VERSION.tar.gz` -CHKSUM=`md5sum $OSC_HOME/$PACKAGE_NAME-$PACKAGE_VERSION.tar.gz | cut -f 1 -d' '` +SIZE=`stat -c '%s' $OSC_HOME/${PACKAGE_NAME}_${PACKAGE_VERSION}.tar.gz` +CHKSUM=`md5sum $OSC_HOME/${PACKAGE_NAME}_${PACKAGE_VERSION}.tar.gz | cut -f 1 -d' '` cat tools/$PACKAGE_NAME.dsc > $OSC_HOME/$PACKAGE_NAME.dsc -echo " $CHKSUM $SIZE $PACKAGE_NAME-$PACKAGE_VERSION.tar.gz" >> $OSC_HOME/$PACKAGE_NAME.dsc +echo " $CHKSUM $SIZE ${PACKAGE_NAME}_${PACKAGE_VERSION}.tar.gz" >> $OSC_HOME/$PACKAGE_NAME.dsc |