Changeset 19027 for release-kits/shared/linux/wrapper.cpp
- Timestamp:
- 2009-04-17T10:38:07+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/shared/linux/wrapper.cpp
r18877 r19027 2 2 #include <fstream> 3 3 #include <iomanip> 4 #include <cstdlib> 4 5 5 6 using namespace std; … … 12 13 int main(int argc, char** argv) { 13 14 14 string tempdir = "@[email protected]"; //temporary directory where we will store extracted files 15 string scratch = (getenv("TMPDIR") == NULL) ? "/tmp" : getenv("TMPDIR"); 16 string tempdir = scratch + "/@[email protected]"; //temporary directory where we will store extracted files 15 17 string jarfile = tempdir + "/@[email protected]"; //where we will store the jar file 16 18 string javafile = tempdir + "/@java.installer@"; //where we will store the java tar file … … 110 112 } 111 113 112 //change back to the original directory113 chdir( "..");114 //change to the scratch dir for the following operation 115 chdir(scratch); 114 116 115 117 //delete the temp files
Note:
See TracChangeset
for help on using the changeset viewer.