Skip to content

Commit

Permalink
* Release structure
Browse files Browse the repository at this point in the history
* Created 0.0.1 release
* Added AUR package
  • Loading branch information
halhen committed Apr 24, 2009
1 parent 7bae741 commit 1e438eb
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 0 deletions.
26 changes: 26 additions & 0 deletions build_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
if [ $# -ne 1 ]; then
echo "Usage: build_release.sh <version number>"
exit 1
fi

APPNAME="xmlfs"
RELEASENAME=$APPNAME-$1

mkdir -p $RELEASENAME

cat LICENSE | sed s/CURVERSION/$1/g > $RELEASENAME/LICENSE
cat README | sed s/CURVERSION/$1/g > $RELEASENAME/README
cat config.mk | sed s/CURVERSION/$1/g > $RELEASENAME/config.mk
cat Makefile | sed s/CURVERSION/$1/g > $RELEASENAME/Makefile
cat main.c | sed s/CURVERSION/$1/g > $RELEASENAME/main.c
cat xmlhelpers.h | sed s/CURVERSION/$1/g > $RELEASENAME/xmlhelpers.h
cat xmlhelpers.c | sed s/CURVERSION/$1/g > $RELEASENAME/xmlhelpers.c
cat global.h | sed s/CURVERSION/$1/g > $RELEASENAME/global.h

tar cvzf releases/${RELEASENAME}.tar.gz $RELEASENAME

find . -name 'build_pkg.sh' -exec {} $1 \;

rm -rf $RELEASENAME

echo "Now upload release to web and git-hub"
17 changes: 17 additions & 0 deletions dist/archlinux/PKGBUILD-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Contributor: halhen <halhen at k2h dot se>
pkgname=xmlfs
pkgver=CURVERSION
pkgrel=1
pkgdesc="mount xml files as directory structures"
license=(GPL)
arch=('i686' 'x86_64')
url=http://github.com/halhen/xmlfs/tree/master
depends=('fuse>=2.6' libxml2)
source=(http://www.k2h.se/code/dl/$pkgname-$pkgver.tar.gz)
md5sums=('MD5SUM')

build() {
cd $startdir/src/$pkgname-$pkgver
make PREFIX=/usr MANPREFIX=/usr/man DESTDIR=$startdir/pkg install || return 1
install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
}
26 changes: 26 additions & 0 deletions dist/archlinux/build_pkg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh
#
# Generate stuff that goes onto the website
# Called by ../../build_release.sh and depends on its actions
# Will also run in it's directory
# $1 is version number

# TODO: update pkgrel somehow


APPNAME="xmlfs"
RELEASENAME=$APPNAME-$1

echo "Generating archlinux package for $APPNAME"
echo "Make sure pkgrel in PKGBUILD-template is set correctly"

MD5=`(md5sum releases/${RELEASENAME}.tar.gz | awk '{print $1}')`

cat dist/archlinux/PKGBUILD-template | sed s/CURVERSION/$1/g | sed s/MD5SUM/$MD5/g > releases/archlinux/PKGBUILD

cd releases/archlinux/

makepkg -f --source
rm PKGBUILD

cd ..
Binary file added releases/archlinux/xmlfs-0.0.1-1.src.tar.gz
Binary file not shown.
Binary file added releases/xmlfs-0.0.1.tar.gz
Binary file not shown.

0 comments on commit 1e438eb

Please sign in to comment.