summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-21 10:57:16 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-21 10:57:16 +0200
commit8180d3975cb2af521030bcd46c32fdf2efdedf3f (patch)
treef721b32af17c2b39d3eab55a630eff1d98a2d952
parentd8e980cd2d6072ac812ef96b2aea73037cf8d56b (diff)
downloadpgfuse-8180d3975cb2af521030bcd46c32fdf2efdedf3f.tar.gz
pgfuse-8180d3975cb2af521030bcd46c32fdf2efdedf3f.tar.bz2
more osc fixes
-rw-r--r--Makefile20
-rw-r--r--redhat/pgfuse.spec2
-rwxr-xr-xtools/deploy_to_osc.sh10
3 files changed, 16 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 46bd188..2602e31 100644
--- a/Makefile
+++ b/Makefile
@@ -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