[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: Makefile.am
User: ahvezda
Date: 07/05/25 08:35:17
Modified: . Makefile.am postproc.sh
Added: . removedups.sh
Log:
Fixed/improved the wiki scripts to work with the new wiki software. Wrote a script to remove duplicate images from the repository.
Revision Changes Path
1.5 eda/geda/gaf/docs/scripts/Makefile.am
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Makefile.am
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/docs/scripts/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- Makefile.am 21 Oct 2006 03:57:46 -0000 1.4
+++ Makefile.am 25 May 2007 12:35:17 -0000 1.5
@@ -1,8 +1,8 @@
-## $Id: Makefile.am,v 1.4 2006-10-21 03:57:46 ahvezda Exp $
+## $Id: Makefile.am,v 1.5 2007-05-25 12:35:17 ahvezda Exp $
##
EXTRA_DIST = postproc.sh wikifetch.sh wikicommit.sh populatemkfiles.sh \
- copywip.sh
+ copywip.sh removedups.sh
MOSTLYCLEANFILES = *.log *~
CLEANFILES = *.log *~
1.3 eda/geda/gaf/docs/scripts/postproc.sh
(In the diff below, changes in quantity of whitespace are not shown.)
Index: postproc.sh
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/docs/scripts/postproc.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- postproc.sh 22 Aug 2006 02:56:11 -0000 1.2
+++ postproc.sh 25 May 2007 12:35:17 -0000 1.3
@@ -7,6 +7,12 @@
exit 1
fi
+if [ ! -e "../scripts/removedups.sh" ]
+then
+ echo "../scripts/removedups.sh must exist"
+ exit 1
+fi
+
files=`find . -name \*.html -print`
for i in $files
@@ -21,9 +27,17 @@
isdetail=`echo $i | grep _detail`
if [ "$isdetail" = "" ]
then
- cat $i.old2 | sed 's%media="screen" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php"%media="screen" type="text/css" href="lib/exe/css"%g' | sed 's%media="print" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php?print=1"%media="print" type="text/css" href="lib/exe/001css"%g' > $i
+ cat $i.old2 | \
+ sed 's%media="all" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php?s=all"%media="all" type="text/css" href="lib/exe/css"%g' | \
+ sed 's%media="screen" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php"%media="screen" type="text/css" href="lib/exe/001css"%g' | \
+ sed 's%media="print" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php?s=print"%media="print" type="text/css" href="lib/exe/002css"%g' \
+ > $i
else
- cat $i.old2 | sed 's%media="screen" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php"%media="screen" type="text/css" href="../lib/exe/css"%g' | sed 's%media="print" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php?print=1"%media="print" type="text/css" href="../lib/exe/001css"%g' > $i
+ cat $i.old2 | \
+ sed 's%media="all" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php?s=all"%media="all" type="text/css" href="../lib/exe/css"%g' | \
+ sed 's%media="screen" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php"%media="screen" type="text/css" href="../lib/exe/001css"%g' | \
+ sed 's%media="print" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php?s=print"%media="print" type="text/css" href="../lib/exe/002css"%g' \
+ > $i
fi
@@ -31,3 +45,8 @@
done
+# Remove duplicate images from _detail
+../scripts/removedups.sh 001
+../scripts/removedups.sh 002
+rm -f _media/001*.png _media/001*.jpg _media/002*.png _media/002*.jpg
+
1.1 eda/geda/gaf/docs/scripts/removedups.sh
Index: removedups.sh
===================================================================
#!/bin/sh
prefix=$1
cd _media
files=`ls -1 ${prefix}*`
cd ../_detail
for i in $files
do
oldname=$i
newname=`echo $i | sed "s/$prefix//g"`
htmlfiles=`grep -l $oldname *.html`
for j in $htmlfiles
do
echo Patching $j : $oldname to $newname
mv $j $j.orig
cat $j.orig | sed "s/$oldname/$newname/g" > $j
done
done
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs