mirror of
https://github.com/oDinZu/callirhoe.git
synced 2025-02-22 00:04:52 -05:00
Applied the proposed changes by George to make_pkg
git-svn-id: https://callirhoe.googlecode.com/svn/branches/phantome@209 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df
This commit is contained in:
parent
bec999506d
commit
aed2faa8b6
18
make_pkg
18
make_pkg
@ -9,13 +9,6 @@ make_archive() {
|
||||
python2.7 -m py_compile $i
|
||||
rm $i
|
||||
done
|
||||
# if copied with tar, this is not needed anyway:
|
||||
# find $tempdir -type d -name ".svn" -exec rm -rf '{}' ';'
|
||||
# or
|
||||
# rm -rf `find $tempdir -type d -name ".svn"`
|
||||
for i in `find $tempdir -type d -name ".svn"`; do
|
||||
rm -rf $i
|
||||
done
|
||||
cd $tempdir
|
||||
zip -q -r $curdir/$base.zip *
|
||||
cd $curdir
|
||||
@ -28,10 +21,7 @@ make_archive() {
|
||||
|
||||
# Create Callirhoe package
|
||||
DIR=`mktemp -d -t callirhoe.XXX`
|
||||
# consider this command to actually copy only *.py, without any .svn/ or other crap
|
||||
# tar also preserves timestamps by default, dunno if we really need them
|
||||
#tar c {geom,lang,layouts,lib,style}/*.py | tar x -C "$DIR"
|
||||
cp -R geom lang layouts lib style "$DIR"
|
||||
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"
|
||||
@ -40,11 +30,7 @@ make_archive callirhoe "$DIR"
|
||||
|
||||
# Create Calmagick package
|
||||
DIR=`mktemp -d -t callirhoe.XXX`
|
||||
#tar c lib/{__init__,geom}.py | tar x -C "$DIR"
|
||||
# we also avoid using mkdir this way! ;)
|
||||
mkdir "$DIR/lib"
|
||||
cp lib/__init__.py lib/geom.py "$DIR/lib"
|
||||
|
||||
tar c lib/{__init__,geom}.py | tar x -C "$DIR"
|
||||
cp calmagick.py "$DIR/__main__.py"
|
||||
|
||||
make_archive calmagick "$DIR"
|
||||
|
Loading…
x
Reference in New Issue
Block a user