Added scripts

This commit is contained in:
arcan1s
2013-08-30 15:17:37 +04:00
parent 4a86149349
commit 176918b005
9 changed files with 60 additions and 1 deletions

View File

@ -10,7 +10,7 @@ url="https://github.com/arcan1s/moldyn/mathmech"
license=('GPL')
depends=('qt4' 'qwt')
makedepends=('unzip' 'cmake' 'automoc4')
source=(https://github.com/arcan1s/moldyn/releases/download/mm-1.0.2/${pkgname}-${pkgver}-src.zip)
source=(https://github.com/arcan1s/moldyn/releases/download/mm-${pkgver}/${pkgname}-${pkgver}-src.zip)
md5sums=('7c80789a74255108581583830258fe1c')
_cmakekeys="-DCMAKE_INSTALL_PREFIX=/usr
-DQWT_INCLUDE_PATH=/usr/include/qwt

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

11
mathmech/update_docs.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
COMPONENTS=( mm_agl mm_envir mm_radf mm_statgen mm_trj mm_trj2pdb )
for COMPONENT in ${COMPONENTS[*]}; do
cd $COMPONENT
doxygen $COMPONENT.doxygen
cp logo.png docs/latex
cd docs/latex && make && cd ../../../
mv $COMPONENT/docs/latex/refman.pdf $COMPONENT/$COMPONENT.pdf
rm -rf $COMPONENT/docs
done

48
mathmech/update_ver.sh Executable file
View File

@ -0,0 +1,48 @@
#!/bin/bash
func_help() {
echo -e "\nUsage: update_ver.sh -o OLDVER -n NEWVER"
echo -e "\nRequired parameters:"
echo -e " -o --oldver - path to GIT repository"
echo -e " -n --newver - time to sleep"
echo -e "\nAdditional parametrs:"
echo -e " -h --help - show this help and exit"
exit 1
}
until [ -z $1 ]; do
if [ "$1" = "-h" ]; then
func_help; fi
if [ "$1" = "--help" ]; then
func_help; fi
if [ "$1" = "-o" ]; then
OLDVER="$2"
shift; fi
if [ "$1" = "--oldver" ]; then
OLDVER="$2"
shift; fi
if [ "$1" = "-n" ]; then
NEWVER="$2"
shift; fi
if [ "$1" = "--newver" ]; then
NEWVER="$2"
shift; fi
shift
done
if [[ -z "$OLDVER" || -z "$NEWVER" ]]; then
echo "Parametrs aren't set"
echo "Usage: update_ver.sh -o OLDVER -n NEWVER"
exit 1
fi
# work block
COMPONENTS=(mm_agl mm_envir mm_radf mm_statgen mm_trj mm_trj2pdb)
for COMPONENT in ${COMPONENTS[*]}; do
sed -i "s:$OLDVER:$NEWVER:g" $COMPONENT/src/main.c
sed -i "s:$OLDVER:$NEWVER:g" $COMPONENT/README
sed -i "s:$OLDVER:$NEWVER:g" $COMPONENT/$COMPONENT.doxygen
done
COMPONENT=mathmech
sed -i "s:$OLDVER:$NEWVER:g" $COMPONENT/src/main.cpp
sed -i "s:$OLDVER:$NEWVER:g" $COMPONENT/README