source: ThirdParty/levmar/packLevMar.sh@ 9eb71b3

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
Last change on this file since 9eb71b3 was 8ce1a9, checked in by Frederik Heber <heber@…>, 8 years ago

Merge commit '5443b10a06f0c125d0ae0500abb09901fda9666b' as 'ThirdParty/levmar'

  • Property mode set to 100755
File size: 954 bytes
Line 
1#!/bin/bash
2
3
4# check arguments
5packagename=levmar
6
7# check function for return codes
8function 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
18tar --exclude='*build64*' --exclude='*.git*' -zcvf levmar_2.6.orig.tar.gz levmar-2.6
19check tar
20
21# find version
22version=`ls ${packagename}_*.tar.gz | sort | tail -n 1 | sed -e "s#${packagename}_\(.*\).orig.tar.gz#\1#"`
23check find_version
24echo "Creating debian package of $packagename for version $version"
25
26# extract
27test ! -e ${packagename}-${version}_orig || { echo "${packagename}-${version}_orig must not be present."; exit 255; }
28mv ${packagename}-${version} ${packagename}-${version}_orig
29tar -zxf ${packagename}_${version}.orig.tar.gz
30check extract_archive
31
32# enter and build
33cd ${packagename}-${version}
34debuild -us -uc
35check debuild
36
37# and exit
38exit 0
Note: See TracBrowser for help on using the repository browser.