]> code.citadel.org Git - citadel.git/blobdiff - webcit/buildpackages
* remove more unneeded files from the sourcedist tgz
[citadel.git] / webcit / buildpackages
index 29be24bbccd4d17ca07896ab158b43b301c9c2f0..bdd78929ce3450d49fff52cb7953284062f02910 100755 (executable)
@@ -3,7 +3,7 @@ if test -x Makefile; then
     make clean
 fi
 ./bootstrap
-export WEBCIT_`grep VERSION= configure.in |sed -e "s;';;g"`
+export `grep PACKAGE_VERSION= configure |sed -e "s;';;g" -e "s;PACKAGE;WEBCIT;"`
 
 PACKAGE_VERSION=`cat packageversion`
 DATE=`date '+%a, %d %b %Y %H:%I:00 %z'`
@@ -35,33 +35,32 @@ fi
 
 case $1 in
     debian)
-       cat debian/files_preview | sed \
-           -e "s;@WEBCIT_VERSION@;${WEBCIT_VERSION};" \
-           -e "s;@PACKAGE_VERSION@;${PACKAGE_VERSION};" \
-           > debian/files
        if grep -q "($WEBCIT_VERSION" debian/changelog; then
            echo rebuilding package.
        else
-           echo "webcit (${WEBCIT_VERSION}-${PACKAGE_VERSION}) unstable; urgency=low
-
-  * update to actual Webcit SVN. many new features. see Packages changelog.
-
- -- Wilfried Goesgens <citadel@outgesourced.org>  $DATE
-" >/tmp/webcit_changelog
-           cat debian/changelog >>/tmp/webcit_changelog
-           mv /tmp/webcit_changelog debian/changelog
-           
+           echo "Upstream Version higher than local."      
        fi
        if test "$2" == "src"; then
-           cd ..; dpkg-source -b "webcit-$WEBCIT_VERSION"
+           cd ..
+           rm -rf tmp
+           mkdir tmp
+           cp -a webcit-$WEBCIT_VERSION tmp
+           cd tmp/webcit-$WEBCIT_VERSION
+           rm -rf `find -name .svn ` svn*tmp* build-stamp configure-stamp *~ config.guess  config.log config.status autom4te.cache
+           find -type f -exec chmod a-x {} \;
+           chmod a+x configure
+           cd ..
+           tar -czf webcit_${WEBCIT_VERSION}.orig.tar.gz webcit-${WEBCIT_VERSION}/ --exclude "debian/*"
+           pwd
+           cd  webcit-${WEBCIT_VERSION}; debuild -S -sa -kw.goesgens@outgesourced.org
        else
            fakeroot dpkg-buildpackage
        fi
        ;;
     sourcedist)
-       cd ..; tar -cvzf webcit-$WEBCIT_VERSION.tgz webcit-$WEBCIT_VERSION/
+       cd ..; tar --exclude .svn --exclude "debian/*" -cvzf webcit-${WEBCIT_VERSION}.tar.gz webcit-${WEBCIT_VERSION}/
        ;;
     *)
        echo "Not yet implemented. we have: debian "
        ;;
-esac
\ No newline at end of file
+esac