mirror of
https://github.com/arcan1s/moldyn.git
synced 2025-07-10 04:15:53 +00:00
Release 1.1.1
* optimization
This commit is contained in:
18
mathmech/create_archive.sh
Executable file
18
mathmech/create_archive.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
FILES="docs mathmech mm_agl mm_envir mm_radf mm_statgen mm_trj mm_trj2pdb AUTHORS CMakeLists.txt COPYING docs.cmake INSTALL"
|
||||
ARCHIVE="mathmech"
|
||||
VERSION=`grep -m1 PROJECT_VERSION_MAJOR CMakeLists.txt | awk '{print $3}' | cut -c 1`.\
|
||||
`grep -m1 PROJECT_VERSION_MINOR CMakeLists.txt | awk '{print $3}' | cut -c 1`.\
|
||||
`grep -m1 PROJECT_VERSION_PATCH CMakeLists.txt | awk '{print $3}' | cut -c 1`
|
||||
|
||||
# create archive
|
||||
if [ -e ${ARCHIVE}-${VERSION}-src.zip ]; then
|
||||
rm -f ${ARCHIVE}-${VERSION}-src.zip
|
||||
fi
|
||||
zip -9 -y -r -q ${ARCHIVE}-${VERSION}-src.zip ${FILES}
|
||||
|
||||
# update md5sum
|
||||
MD5SUMS=`md5sum ${ARCHIVE}-${VERSION}-src.zip | awk '{print $1}'`
|
||||
sed -i "/md5sums=('[0-9A-Fa-f]*/s/[^'][^)]*/md5sums=('${MD5SUMS}'/" PKGBUILD
|
||||
sed -i "s/pkgver=[0-9.]*/pkgver=${VERSION}/" PKGBUILD
|
Reference in New Issue
Block a user