update
This commit is contained in:
parent
367013a179
commit
eee014441d
29 changed files with 546 additions and 10070 deletions
19
nexus-oss/update.sh
Executable file
19
nexus-oss/update.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
ver=`curl -s --head https://download.sonatype.com/nexus/3/latest-unix.tar.gz | grep location | cut -d' ' -f2`
|
||||
ver=${ver%-unix*}
|
||||
ver=${ver##*nexus-}
|
||||
echo $ver
|
||||
array=(${ver//-/ })
|
||||
sed -i "s/_version=.*/_version=${array[0]}/" PKGBUILD
|
||||
sed -i "s/_patch=.*/_patch=${array[1]}/" PKGBUILD
|
||||
updpkgsums > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
git add .SRCINFO PKGBUILD
|
||||
git commit -m "update to $ver" > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
git push
|
||||
fi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue