diff options
author | ache <ache@FreeBSD.org> | 1998-05-21 06:34:55 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1998-05-21 06:34:55 +0800 |
commit | ab8b643fca63bdc0cef89de6512ead28677dec60 (patch) | |
tree | 8143b46180f95987a99b5cf4112ecc983500d1d1 /www/WebMagick | |
parent | 73637e50fa7485979850af3e1c29d27a240aa736 (diff) | |
download | freebsd-ports-graphics-ab8b643fca63bdc0cef89de6512ead28677dec60.tar.gz freebsd-ports-graphics-ab8b643fca63bdc0cef89de6512ead28677dec60.tar.zst freebsd-ports-graphics-ab8b643fca63bdc0cef89de6512ead28677dec60.zip |
Write javascript junk only if it is enabled
Diffstat (limited to 'www/WebMagick')
-rw-r--r-- | www/WebMagick/files/patch-aa | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/www/WebMagick/files/patch-aa b/www/WebMagick/files/patch-aa index 4adb9c3735c..9ac3f58e0f7 100644 --- a/www/WebMagick/files/patch-aa +++ b/www/WebMagick/files/patch-aa @@ -1,5 +1,5 @@ -*** webmagick.in.bak Tue Mar 24 07:45:45 1998 ---- webmagick.in Thu May 21 02:06:06 1998 +*** webmagick.in.orig Tue Mar 24 07:45:45 1998 +--- webmagick.in Thu May 21 02:35:08 1998 *************** *** 249,255 **** # Name of per-directory rc file @@ -17,3 +17,42 @@ # File naming +*************** +*** 1584,1590 **** + # Save run status (source files and montage options) + # + writePerlIndexFiles(); +! writeJavaScriptIndexFiles(); + } + + # Clear error flag +--- 1584,1592 ---- + # Save run status (source files and montage options) + # + writePerlIndexFiles(); +! if( $opt_javascript ) { +! writeJavaScriptIndexFiles(); +! } + } + + # Clear error flag +*************** +*** 1860,1865 **** +--- 1862,1868 ---- + + # ----- Output Top JavaScript Index File (usually "indexjs.html") ------- + # ++ if( $opt_javascript ) { + open( INDEX, ">$fileNames{'jsDirIndex'}") + || die("$0: Failed to open file $fileNames{'jsDirIndex'} for output\n$@\n"); + print( INDEX "<HTML>\n" ); +*************** +*** 1873,1878 **** +--- 1876,1882 ---- + print( INDEX "</SCRIPT>\n" ); + print( INDEX "</HTML>\n" ); + close( INDEX ); ++ } + + + # ----- Output Frame Directory File (usally ".indexdir.html") ------ |