User Tools

Site Tools


debian_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

debian_script [2017/02/02 23:09]
maefloresta created
debian_script [2019/07/16 20:31]
Line 1: Line 1:
-;#; 
-[[ubuntu_packaging|Back to Debian HowTo]] 
-;#; 
  
-<​file>​ 
-#!/bin/bash 
-# By xtingray 
-# 
-# Description:​ This bash script gets the source code of 
-# Tupi from its GIT repository and builds the 
-# Debian/​Ubuntu packages 
-# 
-# Dependencies:​ 
-# 
-# * You need to have a valid OpenPGP key installed 
-# in your account. More info at: 
-# https://​help.ubuntu.com/​community/​GnuPrivacyGuardHowto 
-# 
-# * You need to install all the Tupi dependencies in 
-# your system. More info at: 
-# http://​www.maefloresta.com/​portal/​howCompileTupi 
- 
-VERSION="​5"​ 
-SOURCE="/​home/​xtingray"​ 
- 
-echo ""​ 
-echo "​Setting a cool environment in a temp directory..."​ 
-echo ""​ 
-cd $SOURCE/tmp 
- 
-if [ -d "​debian"​ ]; then 
-rm -rf debian 
-fi 
- 
-mkdir debian 
-cd debian 
- 
-echo "​Getting the source code from Gitorious or a local place..."​ 
-echo ""​ 
-cp -r $SOURCE/​tupi/​sources/​tupi . 
-cd tupi 
-make distclean 
-\rm -rf .git 
-cd .. 
-echo ""​ 
-echo "​Making the tarballs required..."​ 
-echo ""​ 
-mv tupi tupi-0.1 
-tar cfz tupi_0.1.orig.tar.gz tupi-0.1 
- 
-echo ""​ 
-echo "​Building Tupi package..."​ 
-echo ""​ 
-cd tupi-0.1 
-./configure 
-debuild 
- 
-echo ""​ 
-echo "​Building Tupi source package..."​ 
-echo ""​ 
- 
-rm -rf debian/tupi 
-make distclean 
-./configure 
-debuild -S 
- 
-cd .. 
-ls -al 
- 
-echo ""​ 
-echo "​Debian packaging process: successful! :)" 
-echo ""​ 
-echo "​Debian/​Ubuntu package of Tupi available from: packages/​tupi"​ 
-md5sum tupi_0.1-0ubuntu${VERSION}_i386.deb 
-</​file>​ 
- 
-;#; 
-[[ubuntu_packaging|Back to Debian HowTo]] 
-;#; 
debian_script.txt ยท Last modified: 2019/07/16 20:31 (external edit)