- Timestamp:
- 03/17/08 13:39:02 (17 years ago)
- Branches:
- master, help
- Children:
- 20b4e44
- Parents:
- b2647de
- git-author:
- pawelk <pawelk@…> (03/17/08 13:39:02)
- git-committer:
- pawelk <pawelk@…> (03/17/08 13:39:02)
- Location:
- app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
app/dist/common/utt_make_config.pl
re1b08a2 rd593c5e 1 #!c:\usr\perl\bin\perl.exe 1 #!/usr/bin/perl 2 #c:\usr\perl\bin\perl.exe 2 3 3 4 use Cwd 'abs_path'; -
app/dist/deb/Makefile
r25ae32e rd593c5e 1 1 #default task 2 3 DIR=$(shell pwd) 4 5 ifndef UTT_DIST_DIR 6 UTT_DIST_DIR=${DIR} 7 endif 8 9 ifndef UTT_DIST_OUTPUT 10 UTT_DIST_OUTPUT=${DIR} 11 endif 2 12 3 13 # here there're few properties 4 14 _PRODUCT_NAME=utt 5 _BUILD_DIR=$(_UTT_BIN_DIR)6 15 _UTT_VER=$(shell cat ../common/version.def) 7 16 _UTT_REL=$(shell cat ../common/release.def) 8 _DEB_ ROOT=$(shell pwd)/deb_root9 _ INSTALL_DIR=/usr/local/$(_PRODUCT_NAME)/$(_UTT_VER)-$(_UTT_REL)17 _DEB_FROOT=$(DIR)/deb_root 18 _UTT_DIR=${_DEB_FROOT}/usr/local/$(_PRODUCT_NAME).$(_UTT_VER)-$(_UTT_REL) 10 19 11 20 .PHONY: default 12 default: 13 # we need some extra configuration files14 m ake_control15 m ake_postinst21 default: make_control make_postinst make_prerm 22 # first, we prepare some directory structure 23 mkdir -p $(_DEB_FROOT)/DEBIAN 24 mkdir -p $(_UTT_DIR) 16 25 17 # first, we prepare some directory structure 18 mkdir -p $(_DEB_ROOT)/DEBIAN 19 mkdir -p $(_DEB_ROOT)$(_INSTALL_DIR) 20 mkdir -p $(_DEB_ROOT)/usr/share/man/man1 21 mkdir -p $(_DEB_ROOT)/usr/share/doc/$(_PRODUCT_NAME) 26 # next, we copy deb package files 27 mv ./control $(_DEB_FROOT)/DEBIAN/ 28 mv ./postinst $(_DEB_FROOT)/DEBIAN/ 29 mv ./prerm $(_DEB_FROOT)/DEBIAN/ 30 cd ${_DEB_FROOT} && tar -cvvf control.tar.gz DEBIAN/ 31 cd ${DIR}; 32 rm -fr ${_DEB_FROOT}/DEBIAN/ 22 33 23 find $(_DEB_ROOT) -type d | xargs chmod 755 # this is necessary on Debian Woody, don't ask me why24 25 # next, we copy necessary files26 mv ./control $(_DEB_ROOT)/DEBIAN/ 27 cp ./ postinst $(_DEB_ROOT)/DEBIAN/28 cp ./prerm $(_DEB_ROOT)/DEBIAN/ 29 # cp -r $(_BUILD_DIR)/man/* $(_DEB_ROOT)/usr/share/man/30 cp $(_BUILD_DIR)/COPYRIGHT $(_DEB_ROOT)/usr/share/doc/$(_PRODUCT_NAME)/copyright31 # cp $(_BUILD_DIR)/changelog $(_DEB_ROOT)/usr/share/doc/$(_PRODUCT_NAME)/ 32 # cp $(_BUILD_DIR)/changelog.Debian $(_DEB_ROOT)/usr/share/doc/$(_PRODUCT_NAME)/ 34 # we copy all necessery files (binaries) 35 cp -r ${UTT_DIST_DIR}/* ${_UTT_DIR}/ 36 cp ./changelog ${_UTT_DIR}/share/doc/$(_PRODUCT_NAME)/ 37 # gzip --best $(_DEB_ROOT)/usr/share/doc/$(_PRODUCT_NAME)/changelog 38 cp ./changelog.Debian $(_UTT_DIR)/share/doc/$(_PRODUCT_NAME)/ 39 # gzip --best $(_DEB_ROOT)/usr/share/doc/$(_PRODUCT_NAME)/changelog.Debian 40 cp ../files/* ${_UTT_DIR}/share/doc/${_PRODUCT_NAME}/ 41 cp ../common/utt_make_config.pl ${_UTT_DIR}/bin/ 42 chmod 755 ${_UTT_DIR}/bin/utt_make_config.pl 43 33 44 34 45 35 # next we make man/doc archives46 # # next we make man/doc archives 36 47 # gzip --best $(_DEB_ROOT)/usr/share/man/man1/$(_PRODUCT_NAME).1 37 # gzip --best $(_DEB_ROOT)/usr/share/doc/$(_PRODUCT_NAME)/changelog38 # gzip --best $(_DEB_ROOT)/usr/share/doc/$(_PRODUCT_NAME)/changelog.Debian39 # tar -cvvf control.tar.gz ${_DEB_ROOT}/DEBIAN/40 # rm -fr ${_DEB_ROOT}/DEBIAN/41 48 42 # and binaries 43 cp -rv $(_BUILD_DIR)/* $(_DEB_ROOT)$(_INSTALL_DIR)/ 44 # tar -cvvf data.tar.gz ${_DEB_ROOT}/ 45 # rm -fr ${_DEB_ROOT}/ 46 49 find $(_DEB_FROOT) -type d | xargs chmod 755 # this is necessary on Debian Woody, don't ask me why 47 50 48 51 # finally, we buid deb package 49 fakeroot dpkg-deb --build $(_DEB_ROOT) 50 mv $(_DEB_ROOT).deb $(_PRODUCT_NAME)_$(_UTT_VER)-$(_UTT_REL).all.deb 52 fakeroot dpkg-deb --build $(_DEB_FROOT) 53 mv $(_DEB_FROOT).deb $(_PRODUCT_NAME)_$(_UTT_VER)-$(_UTT_REL).all.deb 54 rm -rf ${_DEB_FROOT} 55 51 56 52 57
Note: See TracChangeset
for help on using the changeset viewer.