mirror of
https://github.com/oDinZu/callirhoe.git
synced 2025-02-22 00:04:52 -05:00
removed make_pkg and resrouces_list from root dir
forgot to remove pkgbuild too, but it will be removed in next commit git-svn-id: https://callirhoe.googlecode.com/svn/branches/phantome@213 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df
This commit is contained in:
parent
f47b315186
commit
da9225c973
45
make_pkg
45
make_pkg
@ -1,45 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
make_archive() {
|
|
||||||
base="$1"
|
|
||||||
tempdir="$2"
|
|
||||||
curdir=`pwd`
|
|
||||||
for i in `find $tempdir -type f -name "*.py" | grep -v "__init__"`; do
|
|
||||||
python2.7 -m py_compile $i
|
|
||||||
rm $i
|
|
||||||
done
|
|
||||||
cd $tempdir
|
|
||||||
zip -q -r $curdir/$base.zip *
|
|
||||||
cd $curdir
|
|
||||||
rm -rf $tempdir
|
|
||||||
echo '#!/usr/bin/env python2.7' | cat - $base.zip > $base
|
|
||||||
chmod 755 $base
|
|
||||||
rm -f $base.zip
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Create Callirhoe package
|
|
||||||
DIR=`mktemp -d -t callirhoe.XXX`
|
|
||||||
tar c {geom,lang,layouts,lib,style}/*.py | tar x -C "$DIR"
|
|
||||||
|
|
||||||
cp callirhoe.py "$DIR/__main__.py"
|
|
||||||
./make_resources_list > "$DIR/lib/resources.py"
|
|
||||||
|
|
||||||
make_archive callirhoe "$DIR"
|
|
||||||
|
|
||||||
# Create Calmagick package
|
|
||||||
DIR=`mktemp -d -t callirhoe.XXX`
|
|
||||||
tar c lib/{__init__,geom}.py | tar x -C "$DIR"
|
|
||||||
cp calmagick.py "$DIR/__main__.py"
|
|
||||||
|
|
||||||
make_archive calmagick "$DIR"
|
|
||||||
|
|
||||||
# Create Makefile
|
|
||||||
cat << END > Makefile
|
|
||||||
install:
|
|
||||||
install -Dm755 callirhoe \$(DESTDIR)/bin/callirhoe
|
|
||||||
install -Dm755 calmagick \$(DESTDIR)/bin/calmagick
|
|
||||||
END
|
|
||||||
|
|
||||||
find holidays/* -printf "\tinstall -Dm644 %p \$(DESTDIR)/share/callirhoe/%p\n" >> Makefile
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/env python2.7
|
|
||||||
import glob
|
|
||||||
|
|
||||||
res = dict()
|
|
||||||
|
|
||||||
for x in ['lang', 'style', 'layouts', 'geom']:
|
|
||||||
res[x] = glob.glob('%s/*.py' % x)
|
|
||||||
|
|
||||||
print 'resource_list = {}'
|
|
||||||
for x in res.keys():
|
|
||||||
print 'resource_list["%s"] = %s' % (x, str(res[x]))
|
|
Loading…
x
Reference in New Issue
Block a user