>As a favor, could some body make a wiki were we can learn to use any of the >scrips for the KFV, some packages are really big to make them manually. > >Thanks again.
if you mean the perl scripts used in the main section, it has to be adapted for the kernel section, if i don't wrong. whereas, if you mean something to fast formatting the wiki kernel's page, there's two scripts to do that. I have attached to this mail. bye, marco
fmt.sh
Description: Bourne shell script
# run with -> python kpvtab1.1.py
#
#[1] the first input is the dir location of the section to check (es. "/home/xxx/kernel/")
#
#[2] the "name for the link page" input create the link for the file,
# for example, using "Hardy-kernel-drivers-ata-" the resulting tab section is:
# [[ Hardy-kernel-drivers-ata-Kconfig | Kconfig ]] (for the "Konfig" file)
#
# ****** at line 27 put your username instead of ~crap0101 *************
import os, dircache, string
from time import gmtime, strftime
while 1:
LIST=[]
print "\n(type 'esc' to stop)"
cercare=raw_input("\nurl of the folder: ") #[1]
if cercare=='esc':
break
name=raw_input("name for the link page: ") #[2]
try:
cartella = os.listdir(cercare)
dircache.annotate(cercare,cartella)
cartella.sort()
print "\nFile:\n",">"*30
LIST.append("|| border=1\n||!Section||!Owner||!Date adopted (DD MMM YY)||!Total number of files in section (including README's etc.)||!Percentage of section completed||!Percentage of section certified free||!All suspected non-free software reported (Yes/ No or N/A if none to report)||!Date of summary (DD MMM YY)||")
for x in cartella:
a=str(name)+"-"+str(x)
LINE= "||[[",a,"|",x,"]]||[[~crap0101]]||", strftime("%d %b %y", gmtime()),"||1||100%||100%||n/a||", strftime("%d %b %y", gmtime()),"||"
LIST.append(string.join(LINE,""))
print ">"*30,"\n\nThe folder '",cercare,"' have",len(cartella),"files/dir\n\n",">"*30,"\n"
except:print "\n","-"*30,"\nthis folder not exist!!!\n","-"*30,"\n"
OUTFILE=open(str(name),"w")
for x in LIST:OUTFILE.write(str(str(x)+"\n"))
OUTFILE.close()
_______________________________________________ gNewSense-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/gnewsense-users
