Boost logo

Boost-Commit :

From: hljin_at_[hidden]
Date: 2008-03-17 18:28:59


Author: hljin
Date: 2008-03-17 18:28:58 EDT (Mon, 17 Mar 2008)
New Revision: 43687
URL: http://svn.boost.org/trac/boost/changeset/43687

Log:
Added two scripts
Added:
   trunk/libs/gil/doc/insert_boost_licence.sh (contents, props changed)
   trunk/libs/gil/doc/shorten_file_name.sh (contents, props changed)

Added: trunk/libs/gil/doc/insert_boost_licence.sh
==============================================================================
--- (empty file)
+++ trunk/libs/gil/doc/insert_boost_licence.sh 2008-03-17 18:28:58 EDT (Mon, 17 Mar 2008)
@@ -0,0 +1,12 @@
+#!/bin/sh
+ii=`expr $#`
+for file in $@
+ do
+ if [ $ii -lt $# ]
+ then
+ echo Processing $file ...
+ cat $1 $file > tmp
+ mv tmp $file
+ fi
+ ii=`expr $ii - 1`
+done

Added: trunk/libs/gil/doc/shorten_file_name.sh
==============================================================================
--- (empty file)
+++ trunk/libs/gil/doc/shorten_file_name.sh 2008-03-17 18:28:58 EDT (Mon, 17 Mar 2008)
@@ -0,0 +1,30 @@
+#!/bin/sh
+if [ $# -lt 1 ]
+ then
+ $0 html
+ $0 png
+ exit
+fi
+
+echo $# extensions to process
+for file_extension in $@
+ do
+ echo Processing extension $file_extension ...
+ kk=0
+ for long_file_name in *.$1
+ do
+ file_name_length=`expr length $long_file_name`
+ if [ $file_name_length -gt 20 ]
+ then
+ kk=`expr $kk + 1`
+ short_file_name=`printf "g_i_l_%04d.$1" $kk`
+ echo \ \ Shortening $long_file_name to $short_file_name ...
+ for ii in `grep -l $long_file_name *`
+ do
+ sed_string="s/\\\"$long_file_name/\\\"$short_file_name/g"
+ sed -i $sed_string $ii
+ done
+ mv $long_file_name $short_file_name
+ fi
+ done
+done


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk