Skip to content

Commit

Permalink
In the process of refactoring the debian template files.
Browse files Browse the repository at this point in the history
  • Loading branch information
slopjong committed Oct 24, 2011
1 parent a6a7d1e commit a45df28
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
23 changes: 15 additions & 8 deletions releases/linux/debian/build
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,33 @@ package()
{
#echo "package() to be implemented"

echo "cp -R ${PACKAGE_HOME}/bin ${app_name}"
cp -R ${PACKAGE_HOME}/bin ${app_name}-${app_version}
cp -R template ${app_name}-${app_version}
# prepare the directory structure for dpkg-buildpackage
cp ../../single/erwiz-0.9.0.tar.gz .
cp erwiz-0.9.0.tar.gz erwiz_0.9.0.orig.tar.gz
cp -R ${PACKAGE_HOME}/src ${app_name}-${app_version}
cp -R template ${app_name}-${app_version}/debian

# go to the source directory (where debian resides in)
cd ${app_name}-${app_version}
mv template debian
mv license.txt copyright

#mv template debian
#mv license.txt copyright
mv readme.txt readme
mv authors.txt authors

#fakeroot dh binary-indep
#debuild -S
#dpkg-buildpackage
}

post_clean()
{
cd $BUILD_PATH
rm -rf ${app_name}-${app_version}
echo "Post-cleaning ..."
#cd $BUILD_PATH
#rm -rf ${app_name}-${app_version}
}

init
clean
package
post_clean
post_clean
28 changes: 16 additions & 12 deletions releases/linux/debian/template/rules
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
#!/usr/bin/make -f

clean:
dh_testdir
dh_testroot
dh_clean

binary:
dh_testdir
dh_testroot
dh_md5sums
dh_builddeb

.PHONY: clean binary
build:
ant


#clean:
# dh_testdir
# dh_testroot
# dh_clean

#binary:
# dh_testdir
# dh_testroot
# dh_md5sums
# dh_builddeb

#.PHONY: clean binary

0 comments on commit a45df28

Please sign in to comment.