- Timestamp:
- May 8, 2007, 10:07:38 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/svndigest.cc
r289 r297 165 165 mkdir("all"); 166 166 mkdir("images"); 167 touch("all/index.html"); 168 touch("images/index.html"); 167 169 for (std::set<std::string>::const_iterator i = stats.authors().begin(); 168 170 i!=stats.authors().end(); ++i) { 169 171 mkdir(*i); 172 touch(std::string(*i+"/index.html")); 170 173 } 171 174 try { -
trunk/lib/utility.cc
r294 r297 126 126 } 127 127 128 129 void touch(std::string str) 130 { 131 if (!node_exist(str)) { 132 std::ofstream os(str.c_str()); 133 os.close(); 134 } 135 } 136 128 137 time_t str2time(const std::string& str) 129 138 { -
trunk/lib/utility.h
r294 r297 127 127 /// 128 128 time_t str2time(const std::string&); 129 130 /// 131 /// If file does not exist create empty file. 132 /// 133 void touch(std::string); 129 134 130 135 ///
Note: See TracChangeset
for help on using the changeset viewer.