Action_Thermostats
Add_AtomRandomPerturbation
Add_RotateAroundBondAction
Add_SelectAtomByNameAction
Adding_Graph_to_ChangeBondActions
Adding_MD_integration_tests
Adding_StructOpt_integration_tests
AutomationFragmentation_failures
Candidate_v1.6.1
ChangeBugEmailaddress
ChangingTestPorts
ChemicalSpaceEvaluator
Disabling_MemDebug
Docu_Python_wait
EmpiricalPotential_contain_HomologyGraph_documentation
Enhance_userguide
Enhanced_StructuralOptimization
Enhanced_StructuralOptimization_continued
Example_ManyWaysToTranslateAtom
Exclude_Hydrogens_annealWithBondGraph
Fix_ChronosMutex
Fix_StatusMsg
Fix_StepWorldTime_single_argument
Fix_Verbose_Codepatterns
ForceAnnealing_goodresults
ForceAnnealing_oldresults
ForceAnnealing_tocheck
ForceAnnealing_with_BondGraph
ForceAnnealing_with_BondGraph_continued
ForceAnnealing_with_BondGraph_continued_betteresults
ForceAnnealing_with_BondGraph_contraction-expansion
GeometryObjects
Gui_displays_atomic_force_velocity
IndependentFragmentGrids_IntegrationTest
JobMarket_RobustOnKillsSegFaults
JobMarket_StableWorkerPool
PythonUI_with_named_parameters
QtGui_reactivate_TimeChanged_changes
Recreated_GuiChecks
RotateToPrincipalAxisSystem_UndoRedo
StoppableMakroAction
TremoloParser_IncreasedPrecision
TremoloParser_MultipleTimesteps
Ubuntu_1604_changes
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 |
|
---|
4 | # check arguments
|
---|
5 | packagename=levmar
|
---|
6 |
|
---|
7 | # check function for return codes
|
---|
8 | function check
|
---|
9 | {
|
---|
10 | # 1 is the failing command's name
|
---|
11 | if test $? != 0; then
|
---|
12 | echo "$1 failed wih error code $?"
|
---|
13 | exit $?
|
---|
14 | fi
|
---|
15 | }
|
---|
16 |
|
---|
17 | # create distribution archive
|
---|
18 | tar --exclude='*build64*' --exclude='*.git*' -zcvf levmar_2.6.orig.tar.gz levmar-2.6
|
---|
19 | check tar
|
---|
20 |
|
---|
21 | # find version
|
---|
22 | version=`ls ${packagename}_*.tar.gz | sort | tail -n 1 | sed -e "s#${packagename}_\(.*\).orig.tar.gz#\1#"`
|
---|
23 | check find_version
|
---|
24 | echo "Creating debian package of $packagename for version $version"
|
---|
25 |
|
---|
26 | # extract
|
---|
27 | test ! -e ${packagename}-${version}_orig || { echo "${packagename}-${version}_orig must not be present."; exit 255; }
|
---|
28 | mv ${packagename}-${version} ${packagename}-${version}_orig
|
---|
29 | tar -zxf ${packagename}_${version}.orig.tar.gz
|
---|
30 | check extract_archive
|
---|
31 |
|
---|
32 | # enter and build
|
---|
33 | cd ${packagename}-${version}
|
---|
34 | debuild -us -uc
|
---|
35 | check debuild
|
---|
36 |
|
---|
37 | # and exit
|
---|
38 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.