Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added debian dir

git-svn-id: http://svn.hunch.se/ab/trunk@225 9b4f6404-e40b-0410-ad9e-9008e25ae5f1
  • Loading branch information...
commit f66bf3b832df7aa475b18858c7310e798e9a42a6 1 parent 38b1807
@rsms authored
View
0  debian/changelog
No changes.
View
1  debian/compat
@@ -0,0 +1 @@
+5
View
15 debian/control
@@ -0,0 +1,15 @@
+Source: php5-abstractbase
+Section: web
+Priority: optional
+Maintainer: Rasmus Andersson <rasmus@flajm.se>
+Build-Depends: debhelper (>= 5.0.38), php5 (>= 5.1.0)
+Standards-Version: 3.7.2
+
+Package: php5-abstractbase
+Architecture: any
+Depends: php5, ${shlibs:Depends}
+Suggests: php5-curl, php5-imap, php5-mcrypt
+Description: A lightweight, high quality, strictly named and documented, object
+ oriented PHP 5 library.
+ .
+ Homepage: http://trac.hunch.se/ab
View
27 debian/copyright
@@ -0,0 +1,27 @@
+This package was debianized by Rasmus Andersson <rasmus@flajm.se>
+
+It was downloaded from http://trac.hunch.se/ab/dist/
+
+Upstream Author: Rasmus Andersson <rasmus@flajm.se>
+
+License:
+
+ Copyright (c) 2007, Rasmus Andersson
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
View
66 debian/rules
@@ -0,0 +1,66 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+# This is the debhelper compatibility version to use.
+export DH_COMPAT = 5
+echo "work in progress"
+exit 1
+
+build: build-stamp
+
+build-stamp: $(PYVERS:%=build-ext-%-stamp)
+ touch $@
+
+build-ext-%-stamp:
+ dh_testdir
+ $* setup.py build -g
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -rf build
+ dh_clean
+
+install: build install-prereq $(PYVERS:%=install-ext-%)
+
+install-prereq:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+install-ext-%:
+ $* setup.py install --root=debian/python-smisk
+ rm -rf debian/python-smisk/usr/smisk-doc
+ rm -rf debian/python-smisk/usr/bin
+ #rm -rf debian/python-smisk/usr/lib/python*/site-packages/smisk/test
+ find debian/python-smisk -name '*.pyc' | xargs rm -f
+
+# Build architecture-independent files here.
+binary-indep:
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir -a
+ dh_testroot -a
+ #dh_installdocs -A -a doc/usage-guide.* doc/*.css
+
+ dh_installexamples -A -a examples/*
+
+ dh_pycentral -a
+ dh_installchangelogs -a
+ dh_strip -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install configure
View
3  dist-debian.sh
@@ -8,6 +8,9 @@ DEB_REMOTE_PATH='/var/www/hunch.se/www/public/debian/'
cd `dirname $0`
. dist.sh
+echo "work in progress" >&2
+exit 1
+
# Ensure we're on Debian and has package builder
if [ $(uname -s) != "Linux" ] || [ ! -x /usr/bin/dpkg-buildpackage ]; then
echo 'This is not a debian machine or dpkg-buildpackage is not available.' >&2
View
17 dist-generic.sh
@@ -14,8 +14,8 @@
#
REMOTE_HOST='trac.hunch.se'
-REMOTE_PATH='/var/lib/trac/ab/dist/'
-REMOTE_PATH_DOCS='/var/lib/trac/ab/docs/'
+REMOTE_PATH='/var/lib/trac/ab/dist'
+REMOTE_PATH_DOCS='/var/lib/trac/ab/docs'
if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
echo "Package and distribute a new version." >&2
@@ -26,7 +26,7 @@ fi
cd $(dirname $0)
. dist.sh
-#ensure_clean_working_revision
+ensure_clean_working_revision
# Clean previous
@@ -56,10 +56,17 @@ lib/makedoc.sh
# Upload & update links on server
echo "Uploading $DIST_PACKAGE_PATH to $REMOTE_HOST:$REMOTE_PATH"
-scp -qC "$DIST_PACKAGE_PATH" $REMOTE_HOST:$REMOTE_PATH
+scp -qC "$DIST_PACKAGE_PATH" $REMOTE_HOST:$REMOTE_PATH/
ssh $REMOTE_HOST "cd $REMOTE_PATH;\
if [ -f \"$DIST_PACKAGE_FILENAME\" ]; then\
ln -sf \"$DIST_PACKAGE_FILENAME\" \"$PACKAGE-latest.tgz\";\
fi;"
echo "Uploading docs/api to $REMOTE_HOST:$REMOTE_PATH_DOCS"
-scp -qCr docs/api $REMOTE_HOST:$REMOTE_PATH_DOCS
+scp -qCr docs/api $REMOTE_HOST:$REMOTE_PATH_DOCS/.api_upload
+ssh $REMOTE_HOST "cd $REMOTE_PATH_DOCS; rm -rf api; mv -v .api_upload api"
+
+# Note about tagging
+echo 'Done!'
+echo 'You might want to tag this version:'
+REPROOT=$(svn info .|grep 'Repository Root:'|cut -d ' ' -f 3)
+echo svn cp . $REPROOT/tags/$DIST_PACKAGE_NAME
View
3  lib/makedoc.sh
@@ -7,6 +7,7 @@
PHPDOC=`which phpdoc`
cd $(dirname $0)
PWD=`pwd`
+VER=$($GREP "define('AB_VERSION'" base/boot.php|cut -d ' ' -f 2|sed 's/[^0-9\.]//g')
if [ ! -x "$PHPDOC" ]; then
echo "phpdoc not installed" >&2
@@ -20,7 +21,7 @@ fi
###############################################################################
# Configuration:
-TITLE="AbstractBase&nbsp;API&nbsp;Documentation"
+TITLE="AbstractBase&nbsp;$VER&nbsp;API&nbsp;Documentation"
# name to use for the default package. If not specified, uses 'default'
DEFAULT_PACKAGE="ab.unknown"
Please sign in to comment.
Something went wrong with that request. Please try again.