| 1 |
#!/bin/sh |
| 2 |
###################################################################### |
| 3 |
# # |
| 4 |
# .undosymlinks for CBFlib/doc directory # |
| 5 |
# # |
| 6 |
# # |
| 7 |
# Version 0.8.0 20 Jul 2008 # |
| 8 |
# # |
| 9 |
# Paul Ellis and # |
| 10 |
# Herbert J. Bernstein ([email protected]) # |
| 11 |
# # |
| 12 |
# (C) Copyright 2006 - 2008 Herbert J. Bernstein # |
| 13 |
# # |
| 14 |
###################################################################### |
| 15 |
|
| 16 |
###################################################################### |
| 17 |
# # |
| 18 |
# YOU MAY REDISTRIBUTE THE CBFLIB PACKAGE UNDER THE TERMS OF THE GPL # |
| 19 |
# # |
| 20 |
# ALTERNATIVELY YOU MAY REDISTRIBUTE THE CBFLIB API UNDER THE TERMS # |
| 21 |
# OF THE LGPL # |
| 22 |
# # |
| 23 |
###################################################################### |
| 24 |
|
| 25 |
########################### GPL NOTICES ############################## |
| 26 |
# # |
| 27 |
# This program is free software; you can redistribute it and/or # |
| 28 |
# modify it under the terms of the GNU General Public License as # |
| 29 |
# published by the Free Software Foundation; either version 2 of # |
| 30 |
# (the License, or (at your option) any later version. # |
| 31 |
# # |
| 32 |
# This program is distributed in the hope that it will be useful, # |
| 33 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of # |
| 34 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # |
| 35 |
# GNU General Public License for more details. # |
| 36 |
# # |
| 37 |
# You should have received a copy of the GNU General Public License # |
| 38 |
# along with this program; if not, write to the Free Software # |
| 39 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA # |
| 40 |
# 02111-1307 USA # |
| 41 |
# # |
| 42 |
###################################################################### |
| 43 |
|
| 44 |
######################### LGPL NOTICES ############################### |
| 45 |
# # |
| 46 |
# This library is free software; you can redistribute it and/or # |
| 47 |
# modify it under the terms of the GNU Lesser General Public # |
| 48 |
# License as published by the Free Software Foundation; either # |
| 49 |
# version 2.1 of the License, or (at your option) any later version. # |
| 50 |
# # |
| 51 |
# This library is distributed in the hope that it will be useful, # |
| 52 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of # |
| 53 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # |
| 54 |
# Lesser General Public License for more details. # |
| 55 |
# # |
| 56 |
# You should have received a copy of the GNU Lesser General Public # |
| 57 |
# License along with this library; if not, write to the Free # |
| 58 |
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, # |
| 59 |
# MA 02110-1301 USA # |
| 60 |
# # |
| 61 |
###################################################################### |
| 62 |
|
| 63 |
# Usage ./.undosymlinks |
| 64 |
|
| 65 |
for file in index.html CBFlib.tar.gz template_adscquantum315_3072x3072.cbf \ |
| 66 |
template_adscquantum4_2304x2304.cbf \ |
| 67 |
template_mar345_2300x2300.cbf template_pilatus6m_2463x2527.cbf gpl.txt lgpl.txt |
| 68 |
do |
| 69 |
rm -rf $file |
| 70 |
done |
| 71 |
|
| 72 |
for file in * |
| 73 |
do |
| 74 |
if [ -d "$file" ] ; then |
| 75 |
if [ -e "$file/.undosymlinks" ] ; then |
| 76 |
(cd "$file"; sh -c "./.undosymlinks") |
| 77 |
fi |
| 78 |
fi |
| 79 |
done |