parent
5251ca31cf
commit
0a2ea00172
@ -0,0 +1,17 @@ |
||||
#!/bin/sh |
||||
mkdir -p ~/RPM/SOURCES |
||||
mkdir -p ~/RPM/SPECS |
||||
for i in $(ls *.spec) |
||||
do |
||||
v=$(cat $i | grep Version | cut -c 9- | sed 's/ *//g') |
||||
n=$(basename -s .spec $i) |
||||
d=$n-$v |
||||
if [ -d $n ]; then |
||||
cp -fr $n $d |
||||
tar -cvf $d.tar $d |
||||
mv -f $d.tar ~/RPM/SOURCES/ |
||||
cp -f $i ~/RPM/SPECS/ |
||||
rm -rf $d |
||||
fi |
||||
rpm -ba ~/RPM/SPECS/$i |
||||
done |
@ -1,4 +1,4 @@ |
||||
NAME="KOMETA" |
||||
NAME="MESh" |
||||
VERSION="School 830" |
||||
ID=kometa |
||||
VERSION_ID=p10 |
Loading…
Reference in new issue