Drop unneeded files from repository
This commit is contained in:
parent
67180eddca
commit
0508ff85b2
@ -1,32 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
name="mtr"
|
|
||||||
version=$(grep -e '\s*Version\s*:' $name.spec | head -n 1 | sed -e 's/Version:\s*\(.*\)/\1/')
|
|
||||||
repo="ftp://ftp.bitwizard.nl/mtr/"
|
|
||||||
|
|
||||||
if [ -z $version ]; then
|
|
||||||
echo "err: couldn't determine version of mtr, spec file must be present in the current directory?"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf $name-$version{,.tar.gz,.tar.xz}
|
|
||||||
|
|
||||||
curl -s -O $repo$name-$version.tar.gz >/dev/null 2>&1
|
|
||||||
|
|
||||||
if [ $? != 0 ]; then
|
|
||||||
echo "err: couldn't get upstream tarball"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
tar -xzf $name-$version.tar.gz >/dev/null 2>&1
|
|
||||||
|
|
||||||
rm -f $name-$version.tar.gz
|
|
||||||
|
|
||||||
if [ $? != 0 ]; then
|
|
||||||
echo "err: couldn't extract archive"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
find $name-$version -type f -name '*.o' -delete
|
|
||||||
|
|
||||||
tar -cJf $name-$version.tar.xz $name-$version
|
|
@ -1,10 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Name=Traceroute
|
|
||||||
Type=Application
|
|
||||||
Comment=Traces packets between two network hosts
|
|
||||||
Exec=xmtr
|
|
||||||
Terminal=false
|
|
||||||
Icon=mtr_icon.xpm
|
|
||||||
Encoding=UTF-8
|
|
||||||
X-Desktop-File-Install-Version=0.2
|
|
||||||
Categories=System;Application;
|
|
@ -1,3 +0,0 @@
|
|||||||
USER=root
|
|
||||||
PROGRAM=/usr/bin/xmtr.bin
|
|
||||||
SESSION=true
|
|
Loading…
Reference in New Issue
Block a user