added makefile and make_pkg

Makefile is, well, self explanatory, and completely experimental for the time being
make_pkg creates the zip packages, and makes them executable :D


git-svn-id: https://callirhoe.googlecode.com/svn/branches/phantome@166 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df
This commit is contained in:
ph4ntome@gmail.com 2014-10-30 21:57:41 +00:00
parent ec02bd6bc0
commit ca627b5565
2 changed files with 44 additions and 0 deletions

3
Makefile Normal file
View File

@ -0,0 +1,3 @@
install:
install -m 0755 callirhoe $(prefix)/bin
install -m 0755 calmagick $(prefix)/bin

41
make_pkg Executable file
View File

@ -0,0 +1,41 @@
#!/bin/bash
mkdir _callirhoe
cp -R geom _callirhoe
cp -R holidays _callirhoe
cp -R lang _callirhoe
cp -R layouts _callirhoe
cp -R lib _callirhoe
cp -R style _callirhoe
cp callirhoe.py _callirhoe/__main__.py
cd _callirhoe
zip -q -r callirhoe.zip *
mv callirhoe.zip ../
cd ..
rm -rf _callirhoe
echo \#!/usr/bin/env python2 | cat - callirhoe.zip > callirhoe
chmod 755 callirhoe
rm callirhoe.zip
mkdir _calmagick
cp -R geom _calmagick
cp -R holidays _calmagick
cp -R lang _calmagick
cp -R layouts _calmagick
cp -R lib _calmagick
cp -R style _calmagick
cp callirhoe.py _calmagick
cp calmagick.py _calmagick/__main__.py
cd _calmagick
zip -q -r calmagick.zip *
mv calmagick.zip ../
cd ..
rm -rf _calmagick
echo \#!/usr/bin/env python2 | cat - calmagick.zip > calmagick
chmod 755 calmagick
rm calmagick.zip