Parcourir la source

No tidying backups

Bob Mottram il y a 8 ans
Parent
révision
d77a802e80
2 fichiers modifiés avec 0 ajouts et 4 suppressions
  1. 0
    2
      Makefile
  2. 0
    2
      tidyup

+ 0
- 2
Makefile Voir le fichier

13
 	bash -c "./translate translations"
13
 	bash -c "./translate translations"
14
 tidyup:
14
 tidyup:
15
 	./tidyup src/*
15
 	./tidyup src/*
16
-	rm -f src/*~
17
 source:
16
 source:
18
 	tar -cvf ../${APP}_${VERSION}.orig.tar ../${APP}-${VERSION} --exclude-vcs
17
 	tar -cvf ../${APP}_${VERSION}.orig.tar ../${APP}-${VERSION} --exclude-vcs
19
 	gzip -f9n ../${APP}_${VERSION}.orig.tar
18
 	gzip -f9n ../${APP}_${VERSION}.orig.tar
63
 	bash -c "./translate uninstall"
62
 	bash -c "./translate uninstall"
64
 clean:
63
 clean:
65
 	./tidyup src/*
64
 	./tidyup src/*
66
-	rm -f src/*~
67
 	rm -f \#* \.#* debian/*.substvars debian/*.log
65
 	rm -f \#* \.#* debian/*.substvars debian/*.log
68
 	rm -fr deb.* debian/${APP}
66
 	rm -fr deb.* debian/${APP}
69
 	rm -f ../${APP}*.deb ../${APP}*.changes ../${APP}*.asc ../${APP}*.dsc
67
 	rm -f ../${APP}*.deb ../${APP}*.changes ../${APP}*.asc ../${APP}*.dsc

+ 0
- 2
tidyup Voir le fichier

139
       data = self.read_file(path)
139
       data = self.read_file(path)
140
       result,error = self.beautify_string(data,path)
140
       result,error = self.beautify_string(data,path)
141
       if(data != result):
141
       if(data != result):
142
-        # make a backup copy
143
-        self.write_file(path + '~',data)
144
         self.write_file(path,result)
142
         self.write_file(path,result)
145
     return error
143
     return error
146
 
144